From 1d160160b7b79825e037217cb6a632e3071ff67c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 4 Jun 2014 22:47:28 +0000 Subject: [PATCH] Add cast to wxWindow to fix wxUniv/MSW compilation. wxWindowMSW is different from (base class of) wxWindow in wxUniv and needs to be converted to it explicitly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 728074a674..d186906e6d 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4186,7 +4186,7 @@ bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd), if ( wxIsBusy() ) { wxDialog* const - dlg = wxDynamicCast(wxGetTopLevelParent(this), wxDialog); + dlg = wxDynamicCast(wxGetTopLevelParent((wxWindow *)this), wxDialog); if ( !dlg || !dlg->IsModal() ) isBusy = true; }