X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55c91e8a3faff8a1f4e758bbb64c28d1743c66c8..38c8fce8c4348a61a1e55da13142b84e44924845:/contrib/src/ogl/basic.cpp?ds=sidebyside diff --git a/contrib/src/ogl/basic.cpp b/contrib/src/ogl/basic.cpp index b4b1b3e125..b489a61e47 100644 --- a/contrib/src/ogl/basic.cpp +++ b/contrib/src/ogl/basic.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "basic.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -1369,6 +1365,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) {