forked from 1b-agent/opencadstudio-upstream
Remove extra radius primary unit properties
This commit is contained in:
1 parent
f7d8522520
commit
656501e91d
1 file changed
+11
@@ -2391,6 +2391,17 @@ pub fn style_sections(
|
||||
center_type != "None",
|
||||
));
|
||||
}
|
||||
if let Some(primary_units) = sections
|
||||
.iter_mut()
|
||||
.find(|section| section.title == t!("Primary Units").as_ref())
|
||||
{
|
||||
primary_units.props.retain(|property| {
|
||||
!matches!(
|
||||
property.field,
|
||||
"dim_sub_units_suffix" | "dim_sub_units_scale"
|
||||
)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
sections
|
||||
|
||||
Reference in new issue
Block a user