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
This commit is contained in:
Vadim Zeitlin 2014-06-04 22:47:28 +00:00
parent b60e0e085e
commit 1d160160b7

View File

@ -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;
}