]> git.saurik.com Git - wxWidgets.git/commitdiff
Correction for 'protected' compiler error
authorJulian Smart <julian@anthemion.co.uk>
Tue, 12 Feb 2002 17:43:05 +0000 (17:43 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 12 Feb 2002 17:43:05 +0000 (17:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 0f7a0231e31f02e74279726d82b094e1d4ee4422..643db6adf56f75fed113804543550bcb4b2f0330 100644 (file)
@@ -1704,7 +1704,7 @@ void wxWindowBase::CaptureMouse()
     wxWindow *winOld = GetCapture();
     if ( winOld )
     {
-       winOld->DoReleaseMouse();
+       ((wxWindowBase*) winOld)->DoReleaseMouse();
         // save it on stack
         wxWindowNext *item = new wxWindowNext;
         item->win = winOld;
@@ -1726,7 +1726,7 @@ void wxWindowBase::ReleaseMouse()
 
     if ( ms_winCaptureNext )
     {
-        ms_winCaptureNext->win->DoCaptureMouse();
+        ((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
 
         wxWindowNext *item = ms_winCaptureNext;
         ms_winCaptureNext = item->next;