]> git.saurik.com Git - wxWidgets.git/commitdiff
#ifdefs for wxMotif which doesn't have a wxTopLevelWindow implementation
authorJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 15:03:44 +0000 (15:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 15:03:44 +0000 (15:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 88ff44a5ab898d6f0577937c76f7323ca775bd6d..d958fa5e1a178c407cfe092bd4db7c59eb42bffe 100644 (file)
@@ -392,20 +392,27 @@ void wxSplitterWindow::OnSize(wxSizeEvent& event)
         parent = parent->GetParent();
     }
 
-    bool iconized;
+    bool iconized = FALSE;
 
+    // wxMotif doesn't yet have a wxTopLevelWindow implementation
+#ifdef __WXMOTIF__
+    wxFrame *winTop = wxDynamicCast(parent, wxFrame);
+#else
     wxTopLevelWindow *winTop = wxDynamicCast(parent, wxTopLevelWindow);
+#endif
     if ( winTop )
     {
         iconized = winTop->IsIconized();
     }
+#ifndef __WXMOTIF__
     else
     {
         wxFAIL_MSG(wxT("should have a top level parent!"));
 
         iconized = FALSE;
     }
-
+#endif
+    
     if ( iconized )
     {
         event.Skip();