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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 12 06:46:45 EDT 2012


Author: martinl
Date: 2012-03-12 03:46:45 -0700 (Mon, 12 Mar 2012)
New Revision: 51044

Modified:
   grass/trunk/gui/wxpython/vdigit/wxdigit.py
Log:
wxGUI/vdigit: fix adding new vertex


Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py	2012-03-11 20:58:20 UTC (rev 51043)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py	2012-03-12 10:46:45 UTC (rev 51044)
@@ -1494,7 +1494,7 @@
         @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 @@
         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.



More information about the grass-commit mailing list