fix(dimension): harden jogged radius workflow

This commit is contained in:
Hakan Seven committed 2026-08-27 08:09:02 +03:00
commit bc750c6d76
71 files changed
+5834 -860

No files matched your search

+6 -3
View File
@@ -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,