Correction for 'protected' compiler error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-02-12 17:43:05 +00:00
parent 072db400de
commit 44f8caa786

View 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;