Changeset 1a696bf in sasview


Ignore:
Timestamp:
Aug 11, 2016 11:11:15 AM (5 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:
0e760e9
Parents:
695ec0b
Message:

Don't reuse WX IDs in Plotter2D sub-menu (fixes #617)

File:
1 edited

Legend:

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

    rd85c194 r1a696bf  
    293293 
    294294        wx_id = ids.next() 
    295         slicerpop.Append(wx_id, '&Save Image') 
     295        slicerpop.Append(wx_id, '&Save Image', 'Save image as png') 
    296296        wx.EVT_MENU(self, wx_id, self.onSaveImage) 
    297297 
     
    320320            if (not item_list == None) and (not len(item_list) == 0) and\ 
    321321                self.data2D.name.split(" ")[0] != 'Residuals': 
    322                 # The line above; Not for trunk 
    323                 # Note: reusing menu ids for the sub-menus.  See Plotter1D. 
    324                 for item, wx_id in zip(item_list, self._menu_ids): 
     322                for item, wx_id in zip(item_list, [ids.next() for i in range(len(item_list))]): 
    325323                    try: 
    326324                        slicerpop.Append(wx_id, item[0], item[1]) 
Note: See TracChangeset for help on using the changeset viewer.