fix(mtext): sync wrap width ruler

This commit is contained in:
Hakan Seven 2026-07-31 14:18:11 +03:00
commit 325beaea44
5 changed files with 109 additions and 45 deletions

View file

@ -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()