From: Julian Smart Date: Tue, 12 Feb 2002 17:43:05 +0000 (+0000) Subject: Correction for 'protected' compiler error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44f8caa7862bfdf67605adb801cd1fbb41c8aca5?ds=inline Correction for 'protected' compiler error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 0f7a0231e3..643db6adf5 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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;