[GRASS-dev] [GRASS GIS] #2789: tplot doesnt unregistrate cursor(coor, cats)

GRASS GIS trac at osgeo.org
Fri Oct 30 02:16:19 PDT 2015


#2789: tplot doesnt unregistrate cursor(coor,cats)
----------------------+-------------------------
 Reporter:  krejcmat  |      Owner:  grass-dev@…
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  wxGUI     |    Version:  unspecified
 Keywords:            |        CPU:  x86-64
 Platform:  Linux     |
----------------------+-------------------------
 In case of using cursor for selecting coor or cats interactively after
 close g.gui.tplot cursor is not unregistered from map display.

 {{{
 Traceback (most recent call last):
   File "/home/matt/grass_trunk/dist.i686-pc-linux-
 gnu/gui/wxpython/gui_core/toolbars.py", line 177, in OnTool

 self.toolSwitcher.ToolChanged(event.GetId())
   File "/home/matt/grass_trunk/dist.i686-pc-linux-
 gnu/gui/wxpython/gui_core/toolbars.py", line 353, in
 ToolChanged

 handler(False)
   File "/usr/lib/python2.7/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/buttons.py", line 537,
 in SetToggle

 self.Refresh()
   File "/usr/lib/python2.7/dist-
 packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14615, in
 __getattr__

 raise PyDeadObjectError(self.attrStr % self._name)
 wx._core
 .
 PyDeadObjectError
 :
 The C++ part of the ThemedGenBitmapToggleButton object has
 been deleted, attribute access no longer allowed.
 }}}

 Fix diff is attached.
 Thanks Matej

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2789>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list