[GRASS-SVN] r60753 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 8 06:33:09 PDT 2014


Author: annakrat
Date: 2014-06-08 06:33:09 -0700 (Sun, 08 Jun 2014)
New Revision: 60753

Modified:
   grass/trunk/gui/wxpython/gui_core/simplelmgr.py
Log:
wxGUI/mapswipe: attempt to fix adding layers bug, discussed in #2315

Modified: grass/trunk/gui/wxpython/gui_core/simplelmgr.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/simplelmgr.py	2014-06-08 12:57:04 UTC (rev 60752)
+++ grass/trunk/gui/wxpython/gui_core/simplelmgr.py	2014-06-08 13:33:09 UTC (rev 60753)
@@ -289,6 +289,12 @@
         items = []
         active = []
         selected = []
+
+        # remove hidden (temporary) layers first
+        for layer in reversed(self._layerList):
+            if layer.hidden:
+                self._layerList.RemoveLayer(layer)
+
         for layer in self._layerList:
             if layer.opacity < 1:
                 items.append("{name} (opacity {opacity}%)".format(name=layer.name,



More information about the grass-commit mailing list