Browse Source

wxGUI/vdigit: don't check topology for temporary maps, see https://trac.osgeo.org/grass/ticket/2198

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59096 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
fcc27120d5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      gui/wxpython/vdigit/toolbars.py

+ 3 - 1
gui/wxpython/vdigit/toolbars.py

@@ -822,7 +822,9 @@ class VDigitToolbar(BaseToolbar):
 
         @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 "