]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress warning from wxMiniFrame.
authorRobert Roebling <robert@roebling.de>
Thu, 24 Aug 2006 10:01:40 +0000 (10:01 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 24 Aug 2006 10:01:40 +0000 (10:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/minifram.cpp

index e4c0dcf3422757e4236610b4e881adfa37beb086..931fc2b1bd971f5e7140d3d233932a4b5c17d0ff 100644 (file)
@@ -317,7 +317,8 @@ void wxMiniFrame::SetTitle( const wxString &title )
 {
     wxFrame::SetTitle( title );
 
-    gdk_window_invalidate_rect( GTK_PIZZA(m_mainWidget)->bin_window, NULL, true );
+    if (GTK_PIZZA(m_mainWidget)->bin_window)
+        gdk_window_invalidate_rect( GTK_PIZZA(m_mainWidget)->bin_window, NULL, true );
 }
 
 #endif // wxUSE_MINIFRAME