]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/nonownedwnd_osx.cpp
don't mark GetTraceMask() deprecated as we use it in the same header which provokes...
[wxWidgets.git] / src / osx / nonownedwnd_osx.cpp
index ed53785787c4aa1463acac38b6e36578f6dee365..674c4d9968633dc3f8878df17a73b025b15cb40c 100644 (file)
@@ -346,7 +346,7 @@ bool wxNonOwnedWindow::SetBackgroundStyle(wxBackgroundStyle style)
     if ( !wxWindow::SetBackgroundStyle(style) )
         return false ;
         
-    return m_nowpeer->SetBackgroundStyle(style);
+    return m_nowpeer ? m_nowpeer->SetBackgroundStyle(style) : true;
 }
 
 void wxNonOwnedWindow::DoMoveWindow(int x, int y, int width, int height)