]> git.saurik.com Git - wxWidgets.git/commitdiff
last change was wrong, fix wxUSE_MDI==0 build without completely disabling this file...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Mar 2007 21:07:58 +0000 (21:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Mar 2007 21:07:58 +0000 (21:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/gizmos/dynamicsash.cpp

index 527f103cdd9dd5a6bdfc2b885c18761febf12266..ed9548212fa20e720ecb03a2dab266ae4e5c6a2d 100644 (file)
@@ -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