Corrected the "measure" (Tcl scripted) command to fix an error

when internal units no longer match lambda units.  The text
would match the dimension of the cursor box, but the measurement
lines would be drawn assuming a lambda scale, not the internal
scale.
This commit is contained in:
Tim Edwards 2023-02-20 16:06:18 -05:00
parent c7f11d2169
commit d4790d2f31
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
8.3.367
8.3.368

View File

@ -355,6 +355,9 @@ proc magic::ruler {{text {}} {orient auto}} {
set mmx [expr {($llx + $urx) / 2}]
set mmy [expr {($lly + $ury) / 2}]
set snapsave [snap]
snap internal
if {$orient == "horizontal"} {
element add line l1_$Opts(rulers) black $llx $lly $llx $ury
element add line l4_$Opts(rulers) black $urx $lly $urx $ury
@ -407,6 +410,7 @@ proc magic::ruler {{text {}} {orient auto}} {
element configure l3_$Opts(rulers) flags arrowbottom
}
}
snap $snapsave
}
#---------------------------------------------------------------------