forked from 1b-agent/opencadstudio-upstream
fix(mleader): use lineweight choices
Replace the raw sentinel input with typed CAD lineweight options so special values display correctly and unsupported values cannot be entered. Refs #522
This commit is contained in:
1 parent
dce2533767
commit
a3538ddc45
5 files changed
+26
-11
No files matched your search
@@ -4809,6 +4809,13 @@ impl OpenCADStudio {
|
||||
Message::MLeaderStyleSetEnum { field, value } => {
|
||||
self.on_mleader_style_set_enum(field, value)
|
||||
}
|
||||
Message::MLeaderStyleLineWeightChanged(line_weight) => {
|
||||
let i = self.active_tab;
|
||||
if let Some(s) = self.mleaderstyle_mut(i) {
|
||||
s.line_weight = line_weight;
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
Message::MLeaderStyleSetHandle { field, value } => {
|
||||
self.on_mleader_style_set_handle(field, value)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user