From 6f63513785e4698fd233ccaed3b62ed07df91199 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 23 Mar 2005 11:31:03 +0000 Subject: [PATCH] Assert fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/ogl/basic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/src/ogl/basic.cpp b/contrib/src/ogl/basic.cpp index b4b1b3e125..77c69ff50a 100644 --- a/contrib/src/ogl/basic.cpp +++ b/contrib/src/ogl/basic.cpp @@ -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) { -- 2.47.2