Skip to content

Commit 5c9a48b

Browse files
committed
quick fix to bug introduced in 12ec78f
1 parent 12ec78f commit 5c9a48b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

GSASII/GSASIIpwdGUI.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,8 +3404,11 @@ def onPrmPlot(event):
34043404
RefObj = {}
34053405
Inst2 = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,
34063406
G2frame.PatternId,'Instrument Parameters'))[1]
3407-
RefData = G2frame.GPXtree.GetItemPyData(G2frame.PatternId)[1]
3408-
RefData['Type'] = data['Type'][0]
3407+
G2gd.SetDataMenuBar(G2frame) # this was removed in 12ec78f Why? (BHT)
3408+
#RefData = G2frame.GPXtree.GetItemPyData(G2frame.PatternId)[1]
3409+
#RefData['Type'] = data['Type'][0]
3410+
# The above was added but RefData would need to be ...PatternId)[0]
3411+
# for this to work. Not sure what is going on, so I am commenting the new code (BHT)
34093412
#patch
34103413
if 'P' in insVal['Type']: #powder data
34113414
if 'C' in insVal['Type']: #constant wavelength

0 commit comments

Comments
 (0)