Changeset 738 for trunk/gui/scripts/xyresult.tcl
- Timestamp:
- May 16, 2007, 7:37:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/xyresult.tcl
r736 r738 721 721 } 722 722 } 723 if {$min !=$max} {723 if {$min < $max} { 724 724 $g axis configure $axis -min $min -max $max 725 725 } else { … … 1010 1010 if {[llength $args] != 3} { 1011 1011 error "wrong # args: should be \"_axis drag axis x y\"" 1012 } 1013 if {![info exists _axis(moved)]} { 1014 return ;# must have skipped click event -- ignore 1012 1015 } 1013 1016 set axis [lindex $args 0] … … 1066 1069 error "wrong # args: should be \"_axis release axis x y\"" 1067 1070 } 1071 if {![info exists _axis(moved)]} { 1072 return ;# must have skipped click event -- ignore 1073 } 1068 1074 set axis [lindex $args 0] 1069 1075 set x [lindex $args 1] 1070 1076 set y [lindex $args 2] 1071 1077 1072 if {! [info exists _axis(moved)] || !$_axis(moved)} {1078 if {!$_axis(moved)} { 1073 1079 # small movement? then treat as click -- pop up axis editor 1074 1080 set dx [expr {abs($x-$_axis(click-x))}]
Note: See TracChangeset
for help on using the changeset viewer.