fix(ltscale): show current value before prompt
This commit is contained in:
parent
7aa19f6869
commit
6ef5d66d9e
1 changed files with 11 additions and 1 deletions
|
|
@ -2134,7 +2134,17 @@ impl OpenCADStudio {
|
|||
}
|
||||
"LTSCALE" => {
|
||||
use crate::command::ValuePromptCommand;
|
||||
let c = ValuePromptCommand::new("LTSCALE", "LTSCALE new global line-type scale:");
|
||||
|
||||
let current = self.tabs[i].scene.document.header.linetype_scale;
|
||||
|
||||
self.command_line
|
||||
.push_output(crate::tf!("LTSCALE = {current:.4}").as_ref());
|
||||
|
||||
let c = ValuePromptCommand::new(
|
||||
"LTSCALE",
|
||||
"LTSCALE new global line-type scale:",
|
||||
);
|
||||
|
||||
self.command_line.push_info(&c.prompt());
|
||||
self.tabs[i].active_cmd = Some(Box::new(c));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue