]> git.saurik.com Git - wxWidgets.git/commitdiff
Assert fix
authorJulian Smart <julian@anthemion.co.uk>
Wed, 23 Mar 2005 11:31:03 +0000 (11:31 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 23 Mar 2005 11:31:03 +0000 (11:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/ogl/basic.cpp

index b4b1b3e125f53ff90cf512b3e9dd153aa7e3c9ff..77c69ff50aca88714efadb3e7acf0e9e59f94bfc 100644 (file)
@@ -1369,6 +1369,8 @@ void wxShape::OnBeginDragLeft(double x, double y, int keys, int attachment)
 
 void wxShape::OnEndDragLeft(double x, double y, int keys, int attachment)
 {
+  if (!m_draggable)
+    return;
   m_canvas->ReleaseMouse();
   if ((m_sensitivity & OP_DRAG_LEFT) != OP_DRAG_LEFT)
   {