forked from 1b-agent/opencadstudio-upstream
fix(dimension): harden jogged radius workflow
This commit is contained in:
commit
bc750c6d76
71 files changed
+5834
-860
No files matched your search
@@ -54,9 +54,12 @@ pub struct JoggedRadiusDimensionCommand {
|
||||
|
||||
impl JoggedRadiusDimensionCommand {
|
||||
pub fn new(defaults: DimensionCreationDefaults, annotation_multiplier: f64) -> Self {
|
||||
let editor_height = defaults.text_height
|
||||
* defaults.scale
|
||||
* annotation_multiplier.max(f64::EPSILON);
|
||||
let display_scale = if defaults.annotative {
|
||||
annotation_multiplier.max(f64::EPSILON)
|
||||
} else {
|
||||
defaults.scale
|
||||
};
|
||||
let editor_height = defaults.text_height * display_scale;
|
||||
Self {
|
||||
step: Step::SelectObject,
|
||||
defaults,
|
||||
|
||||
Reference in new issue
Block a user