Opened 9 years ago

Closed 9 years ago

#2789 closed defect (fixed)

tplot doesnt unregistrate cursor(coor,cats)

Reported by: krejcmat Owned by: grass-dev@…
Priority: normal Milestone: 7.0.2
Component: wxGUI Version: unspecified
Keywords: g.gui.tplot Cc: lucadeluge@…
CPU: x86-64 Platform: Linux

Description

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

Attachments (1)

tplot.diff (801 bytes ) - added by krejcmat 9 years ago.

Download all attachments as: .zip

Change History (3)

by krejcmat, 9 years ago

Attachment: tplot.diff added

comment:1 by neteler, 9 years ago

Keywords: g.gui.tplot added
Milestone: 7.0.2

comment:2 by lucadelu, 9 years ago

Resolution: fixed
Status: newclosed

Thanks Matej, applied in r66679.

Closing it

Note: See TracTickets for help on using tickets.