Anna Petrasova 5 năm trước cách đây
mục cha
commit
e626e6fdfe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      gui/wxpython/mapwin/buffered.py

+ 1 - 1
gui/wxpython/mapwin/buffered.py

@@ -1483,7 +1483,7 @@ class BufferedMapWindow(MapWindowBase, Window):
             if (event.LeftIsDown() and
                 not (digitToolbar and
                      digitToolbar.GetAction() in ("moveLine",) and
-                     self.digit.GetDisplay().GetSelected() > 0)):
+                     len(self.digit.GetDisplay().GetSelected()) > 0)):
                 self.MouseDraw(pdc=self.pdcTmp)
 
     def OnLeftDown(self, event):