Changeset 2496


Ignore:
Timestamp:
Oct 19, 2016 9:50:44 AM (5 years ago)
Author:
vondreele
Message:

small modification to fix of post Refine crash in ConstrGUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r2495 r2496  
    11001100            G2frame.dataFrame.ConstraintEdit.Enable(G2gd.wxID_EQUIVALANCEATOMS,True)
    11011101#            G2frame.dataFrame.ConstraintEdit.Enable(G2gd.wxID_ADDRIDING,True)
    1102             if not 'DELETED' in str(PhaseConstr):
    1103                 UpdateConstraintPanel(PhaseConstr,'Phase')
     1102            if 'DELETED' in str(PhaseConstr):   #seems to be no other way to do this (wx bug)
     1103                if GSASIIpath.GetConfigValue('debug'):
     1104                    print 'wx error: PhaseConstr not cleanly deleted after Refine'
     1105                return
     1106            UpdateConstraintPanel(PhaseConstr,'Phase')
    11041107        elif text == 'Global constraints':
    11051108            G2frame.Page = [page,'glb']
     
    14781481        AtInfo = data['Vector']['AtInfo']
    14791482        refChoice = {}
    1480         if 'DELETED' in str(Status):
     1483        if 'DELETED' in str(Status):   #seems to be no other way to do this (wx bug)
     1484            if GSASIIpath.GetConfigValue('debug'):
     1485                print 'wx error: Rigid Body/Status not cleanly deleted after Refine'
    14811486            return
    14821487        SetStatusLine(' You may use e.g. "c60" or "s60" for a vector entry')
Note: See TracChangeset for help on using the changeset viewer.