Changeset 3426 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 9, 2018 4:39:58 PM (5 years ago)
Author:
toby
Message:

Add scan of .gpx objects; try to fix bug on drag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3425 r3426  
    19661966            '''
    19671967            if event.xdata is None or event.ydata is None: return   # ignore if cursor out of window
     1968            if G2frame.itemPicked is None: return # not sure why this happens, if it does
    19681969            Page.canvas.restore_region(savedplot)
    19691970            G2frame.itemPicked.set_data([event.xdata], [event.ydata])
     
    19751976            '''
    19761977            if event.xdata is None: return   # ignore if cursor out of window
     1978            if G2frame.itemPicked is None: return # not sure why this happens
    19771979            Page.canvas.restore_region(savedplot)
    19781980            coords = G2frame.itemPicked.get_data()
     
    19861988            '''
    19871989            if event.ydata is None: return   # ignore if cursor out of window
     1990            if Page.tickDict is None: return # not sure why this happens, if it does
    19881991            Page.canvas.restore_region(savedplot)
    19891992            if Page.pickTicknum:
     
    20052008            '''
    20062009            if event.ydata is None: return   # ignore if cursor out of window
     2010            if G2frame.itemPicked is None: return # not sure why this happens
    20072011            Page.canvas.restore_region(savedplot)
    20082012            coords = G2frame.itemPicked.get_data()
Note: See TracChangeset for help on using the changeset viewer.