Changeset 1998


Ignore:
Timestamp:
02/17/11 19:59:43 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-1306)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): flagtoolbar and flagplotter

Description:

Fixed a bug in the method _clear_selection_plot().
Selection marks should be cleared up properly after this fix.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/flagtoolbar.py

    r1996 r1998  
    375375    def _clear_selection_plot(self):
    376376        ### clear up polygons which mark selected spectra and regions ###
    377         if len(self._polygons) > 1:
    378             self.plotter._plotter.hold()
     377        if len(self._polygons) > 0:
    379378            for shadow in self._polygons:
    380379                shadow.remove()
    381             self.plotter._plotter.release()
    382             self.plotter._plotter.show()
     380            self.plotter._plotter.canvas.draw()
    383381        self._polygons = []
    384382
Note: See TracChangeset for help on using the changeset viewer.