fix(mtext): sync wrap width ruler
This commit is contained in:
parent
325cd2474c
commit
325beaea44
5 changed files with 109 additions and 45 deletions
|
|
@ -3064,6 +3064,13 @@ impl OpenCADStudio {
|
|||
self.rebuild_mtext_preview();
|
||||
Task::none()
|
||||
}
|
||||
Message::MTextRectWidth(width) => {
|
||||
if let Some(ed) = self.mtext_editor.as_mut() {
|
||||
ed.rect_width = width.max(1e-6);
|
||||
}
|
||||
self.rebuild_mtext_preview();
|
||||
Task::none()
|
||||
}
|
||||
Message::MTextColorChanged(color) => {
|
||||
self.mtext_apply_color(color);
|
||||
Task::none()
|
||||
|
|
|
|||
Loading…
Reference in a new issue