ソースを参照

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"]: