Changeset 1613 for trunk/gui/scripts
- Timestamp:
- Nov 10, 2009, 9:47:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/curve.tcl
r1587 r1613 237 237 set _hints(tooltip) $_hints(label) 238 238 } 239 239 set _hints(xmlobj) $_xmlobj 240 240 } 241 241 if {$keyword != ""} { … … 268 268 # 269 269 foreach cname [$_curve children -type component] { 270 set xv ""271 set yv ""270 set xv [blt::vector create \#auto] 271 set yv [blt::vector create \#auto] 272 272 273 273 set xydata [$_curve get $cname.xy] 274 274 if { "" != $xydata} { 275 set xv [blt::vector create \#auto]276 set yv [blt::vector create \#auto]277 275 set tmp [blt::vector create \#auto] 278 276 $tmp set $xydata 279 277 $tmp split $xv $yv 280 278 blt::vector destroy $tmp 281 } else { 282 set xv [blt::vector create \#auto] 283 set yv [blt::vector create \#auto] 279 } else { 284 280 $xv set [$_curve get $cname.xvector] 285 281 $yv set [$_curve get $cname.yvector] 286 if { [$xv length] != [$yv length] } { 287 blt::vector destroy $xv $yv 288 set xv ""; set yv "" 289 } 290 } 291 if {$xv != "" && $yv != ""} { 282 } 283 if { (([$xv length] == 0) && ([$yv length] == 0)) 284 || ([$xv length] != [$yv length]) } { 285 # FIXME: need to show an error about improper data. 286 blt::vector destroy $xv $yv 287 set xv ""; set yv "" 288 } else { 292 289 set _comp2xy($cname) [list $xv $yv] 293 290 incr _counter
Note: See TracChangeset
for help on using the changeset viewer.