Explorar o código

wxGUI/vdigit: fix adding new vertex

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51044 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=13) %!d(string=hai) anos
pai
achega
66f28c47e9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      gui/wxpython/vdigit/wxdigit.py

+ 2 - 2
gui/wxpython/vdigit/wxdigit.py

@@ -1494,7 +1494,7 @@ class IVDigit:
         @param coords coordinates of point
         @param add True to add, False to remove
         
-        @return id id of the new feature
+        @return 1 on success
         @return 0 nothing changed
         @return -1 error
         """
@@ -1526,7 +1526,7 @@ class IVDigit:
         if ret > 0:
             self._addChangeset()
                 
-        return nlines + 1 # feature is write at the end of the file
+        return 1
     
     def GetLineCats(self, line):
         """!Get list of layer/category(ies) for selected feature.