[GRASS-dev] [GRASS GIS] #3607: Removing map layer crashes wxGUI

GRASS GIS trac at osgeo.org
Wed Mar 25 18:06:17 PDT 2020


#3607: Removing map layer crashes wxGUI
------------------------+-----------------------------------------
  Reporter:  cmbarton   |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  7.4.5
 Component:  wxGUI      |    Version:  7.4.0
Resolution:             |   Keywords:  remove layer, layer manager
       CPU:  OSX/Intel  |   Platform:  MacOSX
------------------------+-----------------------------------------

Comment (by annakrat):

 Thanks for the detailed analysis. I can't test but this might work:


 {{{
 diff --git a/gui/wxpython/lmgr/layertree.py
 b/gui/wxpython/lmgr/layertree.py
 index 52c20dcc0..b2b39c613 100644
 --- a/gui/wxpython/lmgr/layertree.py
 +++ b/gui/wxpython/lmgr/layertree.py
 @@ -421,7 +421,7 @@ class LayerTree(treemixin.DragAndDrop,
 CT.CustomTreeCtrl):
              # select the layer in the same way as right click
              if not self.IsSelected(layer):
                  self.DoSelectItem(layer, True, False)
 -            self.OnLayerContextMenu(event)
 +            wx.CallAfter(self.OnLayerContextMenu, event)

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3607#comment:11>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list