X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..683df83d51c0f080e2e5210dc8115be0cb30d1ad:/src/generic/laywin.cpp?ds=sidebyside diff --git a/src/generic/laywin.cpp b/src/generic/laywin.cpp index c532a2c0d2..51b6620189 100644 --- a/src/generic/laywin.cpp +++ b/src/generic/laywin.cpp @@ -238,7 +238,7 @@ bool wxLayoutAlgorithm::LayoutWindow(wxWindow* parent, wxWindow* mainWindow) int leftMargin = 0, rightMargin = 0, topMargin = 0, bottomMargin = 0; #if wxUSE_SASH - if (parent->IsKindOf(CLASSINFO(wxSashWindow))) + if (wxDynamicCast(parent, wxSashWindow)) { wxSashWindow* sashWindow = (wxSashWindow*) parent;