Changeset 2665 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jan 27, 2017 1:36:41 PM (6 years ago)
Author:
vondreele
Message:

fix problem changing atom type for selected atoms - Type was made readonly & test thus skipped it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2662 r2665  
    22182218                    El = dlg.Elem.strip()
    22192219                    for r in indx:                       
    2220                         if not Atoms.IsReadOnly(r,cid):
     2220                        if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22212221                            atomData[r][cid] = El
    22222222                            if len(El) in [2,4]:
     
    22382238                if result == wx.ID_YES:
    22392239                    for r in indx:
    2240                         if not Atoms.IsReadOnly(r,cid+1):
     2240                        if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22412241                            El = atomData[r][cid+1]
    22422242                            if len(El) in [2,4]:
     
    22552255                parm = choices[sel][0]
    22562256                for r in indx:                       
    2257                     if not Atoms.IsReadOnly(r,cid):
     2257                    if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22582258                        atomData[r][cid] = parm
    22592259                FillAtomsGrid(Atoms)
     
    22692269                parm = dlg.GetValue()
    22702270                for r in indx:                       
    2271                     if not Atoms.IsReadOnly(r,cid):
     2271                    if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22722272                        atomData[r][cid] = parm
    22732273                SetupGeneral()
     
    22812281                parm = dlg.GetValue()
    22822282                for r in indx:                       
    2283                     if not Atoms.IsReadOnly(r,cid):
     2283                    if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22842284                        atomData[r][cid] += parm
    22852285                SetupGeneral()
     
    22932293                parm = dlg.GetValue()
    22942294                for r in indx:                       
    2295                     if not Atoms.IsReadOnly(r,cid):
     2295                    if not Atoms.IsReadOnly(r,0):   #not if in RB!
    22962296                        atomData[r][cid] = parm
    22972297                SetupGeneral()
Note: See TracChangeset for help on using the changeset viewer.