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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 9 03:57:33 PST 2013


Author: martinl
Date: 2013-12-09 03:57:32 -0800 (Mon, 09 Dec 2013)
New Revision: 58425

Modified:
   grass/trunk/gui/wxpython/vdigit/mapwindow.py
Log:
wxGUI/vdigit: fix add vertex tool

Modified: grass/trunk/gui/wxpython/vdigit/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/mapwindow.py	2013-12-09 11:53:17 UTC (rev 58424)
+++ grass/trunk/gui/wxpython/vdigit/mapwindow.py	2013-12-09 11:57:32 UTC (rev 58425)
@@ -722,7 +722,7 @@
         pos1 = self.Pixel2Cell(self.mouse['begin'])
         
         pointOnLine = self.digit.GetDisplay().SelectLineByPoint(pos1)['point']
-        if pointOnLine['line'] == -1:
+        if not pointOnLine:
             return
         
         if self.toolbar.GetAction() in ["splitLine", "addVertex"]:



More information about the grass-commit mailing list