]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for drag object bug
authorRobin Dunn <robin@alldunn.com>
Mon, 21 Jun 2004 22:39:24 +0000 (22:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 21 Jun 2004 22:39:24 +0000 (22:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/ogl/_canvas.py

index a3e2f11898b86879d6eaf0104ec45c2cdf3021d4..f5f75a1457dac26cbc6322f3799b44e47346b8ae 100644 (file)
@@ -123,7 +123,7 @@ class ShapeCanvas(wx.ScrolledWindow):
             self._draggedShape.GetEventHandler().OnDragLeft(True, x, y, keys, self._draggedAttachment)
             self._oldDragX, self._oldDragY = x, y
 
-        elif evt.LeftUp and self._draggedShape and self._dragState == ContinueDraggingLeft:
+        elif evt.LeftUp() and self._draggedShape and self._dragState == ContinueDraggingLeft:
             self._dragState = NoDragging
             self._checkTolerance = True