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

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#2789: tplot doesnt unregistrate cursor(coor,cats)
-----------------------+-------------------------
  Reporter: krejcmat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: wxGUI | Version: unspecified
Resolution: | Keywords:
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------
Changes (by krejcmat):

* Attachment "tplot.diff" added.

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

#2789: tplot doesnt unregistrate cursor(coor,cats)
-----------------------+-------------------------
  Reporter: krejcmat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.2
Component: wxGUI | Version: unspecified
Resolution: | Keywords: g.gui.tplot
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------
Changes (by neteler):

* keywords: => g.gui.tplot
* milestone: => 7.0.2

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2789#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2789: tplot doesnt unregistrate cursor(coor,cats)
-----------------------+-------------------------
  Reporter: krejcmat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.2
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: g.gui.tplot
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------
Changes (by lucadelu):

* status: new => closed
* resolution: => fixed

Comment:

Thanks Matej, applied in r66679.

Closing it

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2789#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>