Changeset 3906 for trunk


Ignore:
Timestamp:
Aug 30, 2013 2:27:23 PM (11 years ago)
Author:
gah
Message:

fix drawingentry.tcl: convert floating point canvas coordinates to integer before using in popup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/drawingentry.tcl

    r3903 r3906  
    10741074
    10751075    # Activate the popup and call for the output.
    1076     set x [expr {round($x + [winfo rootx $itk_component(drawing)])}]
    1077     set y [expr {round($y + [winfo rooty $itk_component(drawing)])}]
     1076    set rootx [winfo rootx $itk_component(drawing)]
     1077    set rooty [winfo rooty $itk_component(drawing)]
     1078
     1079    set x [expr {round($x + $rootx)}]
     1080    set y [expr {round($y + $rooty)}]
    10781081    $popup activate @$x,$y above
    10791082}
Note: See TracChangeset for help on using the changeset viewer.