forked from 1b-agent/opencadstudio-upstream
fix(pointstyle): stage dialog edits until accepted
Keep PDMODE and PDSIZE changes in the Point Style dialog until OK. Cancel and close discard staged edits. Invalid or non-finite size input reports an error and keeps the dialog open. Commit both values with one undo snapshot. test: cancel discards staged glyph and size edits test: invalid point size reports error and stays open test: OK commits glyph and size in one undo step test: relative point size keeps its sign
This commit is contained in:
1 parent
248c9aec7b
commit
c0baeda6a6
6 files changed
+214
-44
No files matched your search
@@ -1847,11 +1847,13 @@ impl OpenCADStudio {
|
||||
}
|
||||
super::super::ModalKind::PointStyle => sized_flow(ex, 360, 470, |flow| {
|
||||
crate::ui::style::point_style::view_window(
|
||||
self.tabs[self.active_tab]
|
||||
.scene
|
||||
.document
|
||||
.header
|
||||
.point_display_mode,
|
||||
self.point_mode_buf.unwrap_or_else(|| {
|
||||
self.tabs[self.active_tab]
|
||||
.scene
|
||||
.document
|
||||
.header
|
||||
.point_display_mode
|
||||
}),
|
||||
self.point_size_relative,
|
||||
&self.point_size_buf,
|
||||
flow,
|
||||
|
||||
Reference in new issue
Block a user