fix(mtext): sync wrap width ruler

This commit is contained in:
Hakan Seven committed 2026-07-31 14:18:11 +03:00
1 parent 325cd2474c
commit 325beaea44
5 files changed
+109 -45

No files matched your search

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