Changeset 4486


Ignore:
Timestamp:
Jun 13, 2020 1:50:27 PM (3 years ago)
Author:
vondreele
Message:

fix status bar atom label problem when picking atoms from drawing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4484 r4486  
    82198219        elif G2frame.phaseDisplay.GetPageText(getSelection()) == 'Draw Atoms':
    82208220            atomList = drawAtoms
    8221             cx = G2phG.getAtomPtrs(data,True)[0]
    8222             sympt = cx+3
     8221            cx,ct,cs,cia = G2phG.getAtomPtrs(data,True)
     8222            cs -= 1  #cs points at style for drawings; want sytsym         
    82238223        else:
    82248224            atomList = data['Atoms']
    8225             cx = G2phG.getAtomPtrs(data)[0]
    8226             sympt = None
     8225            cx,ct,cs,ciax = G2phG.getAtomPtrs(data)
    82278226        for i,atom in enumerate(atomList):
    82288227            x,y,z = atom[cx:cx+3]
     
    82388237                except:
    82398238                    SetSelectedAtoms(i,Add)
    8240                     lbl = atom[0]
    8241                     if sympt:
    8242                         lbl += ' ' + atom[sympt]
     8239                    if ct > 1:   # macromolecule
     8240                        lbl = '%s %s'%(atom[0],atom[3])
     8241                    else:
     8242                        lbl = atom[ct-1]
     8243                    lbl += ' ' + atom[cs]
    82438244                    G2frame.G2plotNB.status.SetStatusText(
    82448245                            '    Selected atom: {}'.format(lbl),1)
Note: See TracChangeset for help on using the changeset viewer.