Ignore:
Timestamp:
Sep 27, 2018 4:20:24 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
4f8c17f
Parents:
dce68f6
Message:

Improved handling of 2d plot children. Refactored model tree search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Slicers/AnnulusSlicer.py

    re20870bc r63467b6  
    143143        new_plot.xtransform = "x" 
    144144        new_plot.ytransform = "y" 
    145         GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
     145        item = self._item 
     146        if self._item.parent() is not None: 
     147            item = self._item.parent() 
     148        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    146149        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
    147150 
Note: See TracChangeset for help on using the changeset viewer.