Ignore:
Timestamp:
Nov 6, 2017 4:32:17 PM (4 years ago)
Author:
vondreele
Message:

male all default image pixel sizes [200.,200.] so ValidatedTxtCtrl? treats them as floats.
Fix crash when data is deleted from tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3139 r3151  
    72967296            parentID = G2frame.GPXtree.GetItemParent(item)
    72977297            # save name of calling tree item for help. N.B. may want to override this later
    7298             prfx = G2frame.GPXtree.GetItemText(item).split()[0].upper()
     7298            prfx = G2frame.GPXtree.GetItemText(item)
     7299            if prfx:
     7300                prfx = prfx.split()[0].upper()
     7301            else:   #just deleted item - escape!!
     7302                return
    72997303            prfx1 = G2frame.GPXtree.GetItemText(parentID).split()[0]
    73007304            if prfx in ('IMG','PKS','PWDR','SASD','HKLF','PDF','REFD',):
     
    73127316            G2frame.dataWindow.helpKey = ''
    73137317            if GSASIIpath.GetConfigValue('debug'):
    7314                 print ('bug: why here?')
     7318                print ('bug: why here? prfx=%s prfx1=%s'%(prfx,prfx1))
    73157319                G2obj.HowDidIgetHere()
    73167320       
Note: See TracChangeset for help on using the changeset viewer.