浏览代码

wxGUI/vdigit: fix add vertex tool

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58425 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
940461eeb5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/vdigit/mapwindow.py

+ 1 - 1
gui/wxpython/vdigit/mapwindow.py

@@ -722,7 +722,7 @@ class VDigitWindow(BufferedMapWindow):
         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"]: