Changeset 2f12acc in sasview for src/sas/sasgui/guiframe


Ignore:
Timestamp:
Aug 12, 2016 10:26:05 AM (8 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
2eb3d18c
Parents:
2cff9db
Message:

Allow deletion of linear fits (closes #466)

Also fixes bug where the linear fit would disappear if the home button
was clicked whilst using a non-linear scale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py

    refb482a r2f12acc  
    604604 
    605605            if self.parent.ClassName.count('wxDialog') == 0: 
    606                 wx_id = ids.next() 
    607                 plot_menu.Append(wx_id, '&Linear Fit', name) 
    608                 wx.EVT_MENU(self, wx_id, self.onFitting) 
    609                 plot_menu.AppendSeparator() 
     606                if plot.id != 'fit': 
     607                    wx_id = ids.next() 
     608                    plot_menu.Append(wx_id, '&Linear Fit', name) 
     609                    wx.EVT_MENU(self, wx_id, self.onFitting) 
     610                    plot_menu.AppendSeparator() 
    610611 
    611612                wx_id = ids.next() 
Note: See TracChangeset for help on using the changeset viewer.