소스 검색

wxGUI/vdigit: fix double click on the line/boundary after activate 'Edit selected line/boundary' editing tool (#1814)

Tomas Zigo 3 년 전
부모
커밋
8ed0f45aca
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gui/wxpython/vdigit/mapwindow.py

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

@@ -689,7 +689,8 @@ class VDigitWindow(BufferedMapWindow):
                     else:
                         # unselect
                         self.digit.GetDisplay().SetSelected([])
-                        del self.moveInfo
+                        if hasattr(self, "moveInfo"):
+                            del self.moveInfo
 
                     self.UpdateMap(render=False)