From: Vadim Zeitlin Date: Wed, 14 Mar 2007 21:07:58 +0000 (+0000) Subject: last change was wrong, fix wxUSE_MDI==0 build without completely disabling this file... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/34c76c8155ab5ace140648baf65a8cee96579391?ds=sidebyside last change was wrong, fix wxUSE_MDI==0 build without completely disabling this file compilation when wxUSE_MDI==1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/gizmos/dynamicsash.cpp b/contrib/src/gizmos/dynamicsash.cpp index 527f103cdd..ed9548212f 100644 --- a/contrib/src/gizmos/dynamicsash.cpp +++ b/contrib/src/gizmos/dynamicsash.cpp @@ -13,8 +13,6 @@ // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" -#if !wxUSE_MDI - #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -491,7 +489,7 @@ wxWindow *wxDynamicSashWindowImpl::FindFrame() const win = m_window->GetParent(); while (win && !win->IsTopLevel() -#ifdef __WXMSW__ +#if defined(__WXMSW__) && wxUSE_MDI && ! wxIsKindOf(win, wxMDIChildFrame) // not top-level but still a frame #endif ) @@ -1471,4 +1469,3 @@ wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(const wxDynamicSashRepare IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent) -#endif // !wxUSE_MDI \ No newline at end of file