[GRASS-SVN] r59096 - grass/trunk/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 19 10:47:31 PST 2014


Author: martinl
Date: 2014-02-19 10:47:31 -0800 (Wed, 19 Feb 2014)
New Revision: 59096

Modified:
   grass/trunk/gui/wxpython/vdigit/toolbars.py
Log:
wxGUI/vdigit: don't check topology for temporary maps, see #2198

Modified: grass/trunk/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/toolbars.py	2014-02-19 00:26:04 UTC (rev 59095)
+++ grass/trunk/gui/wxpython/vdigit/toolbars.py	2014-02-19 18:47:31 UTC (rev 59096)
@@ -822,7 +822,9 @@
 
         @param mapLayer MapLayer to be edited
         """
-        if grass.vector_info(mapLayer.GetName())['level'] != 2:
+        # check if topology is available (skip for hidden - temporary
+        # maps, see iclass for details)
+        if not mapLayer.IsHidden() and grass.vector_info(mapLayer.GetName())['level'] != 2:
             dlg = wx.MessageDialog(parent = self.MapWindow,
                                    message = _("Topology for vector map <%s> is not available. "
                                                "Topology is required by digitizer.\nDo you want to "



More information about the grass-commit mailing list