Quick fix to the script use of "units", which needs to expand the
list argument if the units were saved as a variable.
This commit is contained in:
parent
afca58f162
commit
cedd64adcb
|
|
@ -53,7 +53,7 @@ proc magic::drccallback {command} {
|
|||
magic::findbox zoom
|
||||
magic::zoom 2
|
||||
magic::resumeall
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ proc magic::gencell_change {instname gencell_type library parameters} {
|
|||
}
|
||||
identify $newinstname
|
||||
eval "box values $savebox"
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
|
||||
# Update window
|
||||
if {$gname != $old_gname} {
|
||||
|
|
@ -969,7 +969,7 @@ proc magic::gencell_change_orig {instname gencell_type library parameters} {
|
|||
}
|
||||
identify $newinstname
|
||||
eval "box values $savebox"
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
resumeall
|
||||
redraw
|
||||
}
|
||||
|
|
@ -1123,7 +1123,7 @@ proc magic::gencell_create {gencell_type library parameters {orient 0}} {
|
|||
identify $newinstname
|
||||
set instname $newinstname
|
||||
}
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
resumeall
|
||||
redraw
|
||||
return $instname
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ proc magic::pushstack {{name ""}} {
|
|||
set curunits [units]
|
||||
units internal
|
||||
lappend editstack [view get]
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
lappend editstack [cellname list window]
|
||||
set ltag [tag load]
|
||||
tag load {}
|
||||
|
|
@ -166,7 +166,7 @@ proc magic::popstack {} {
|
|||
set curunits [units]
|
||||
units internal
|
||||
view [lindex $editstack end-1]
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
catch {magic::cellmanager}
|
||||
catch {magic::captions}
|
||||
resumeall
|
||||
|
|
@ -201,7 +201,7 @@ proc magic::pushbox {{values {}}} {
|
|||
} else {
|
||||
lappend boxstack $values
|
||||
}
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ proc magic::popbox {{type values}} {
|
|||
}
|
||||
}
|
||||
set boxstack [lrange $boxstack 0 end-1]
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
return $b
|
||||
}
|
||||
|
||||
|
|
@ -415,7 +415,7 @@ proc magic::ruler {{text {}} {orient auto}} {
|
|||
element configure l3_$Opts(rulers) flags arrowbottom
|
||||
}
|
||||
}
|
||||
units $curunits
|
||||
units {*}$curunits
|
||||
}
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue