Changeset 2615 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 6, 2017 3:06:23 PM (8 years ago)
Author:
toby
Message:

fix for plots w/o Data Item parent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIplot.py ΒΆ

    r2614 r2615  
    251251        self.lastRaisedPlotTab = label
    252252        self.RaisePageNoRefresh(Page)
    253         # save in Tabbed page the help name for the DataItem that has created the plot
    254         Page.helpKey = self.G2frame.dataFrame.helpKey
     253        # Save the help name from the DataItem that has created the plot in Tabbed page object
     254        # so we can use it in self.OnHelp().
     255        # Are there any cases where plot tabs are created that are not tied to Data Tree entries?
     256        # One example is GSASII.SumDialog, where a test plot is created. Are there others?
     257        try:
     258            Page.helpKey = self.G2frame.dataFrame.helpKey
     259        except AttributeError:
     260            Page.helpKey = 'Data tree'
    255261        return new,plotNum,Page,Plot,limits
    256262   
Note: See TracChangeset for help on using the changeset viewer.