]> git.saurik.com Git - wxWidgets.git/commitdiff
guarding against null nowpeer in cases like native font or color dialogs
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 19 Jun 2009 14:38:07 +0000 (14:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 19 Jun 2009 14:38:07 +0000 (14:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/toplevel_osx.cpp

index 75380afe01b3ed6e7eb584db495f3cfbe187415c..91ac80da69e8b3df0adbe7d08cfcc168211a9c68 100644 (file)
@@ -148,7 +148,8 @@ wxPoint wxTopLevelWindowMac::GetClientAreaOrigin() const
 void wxTopLevelWindowMac::SetTitle(const wxString& title)
 {
     wxWindow::SetLabel( title ) ;
-    m_nowpeer->SetTitle(title, GetFont().GetEncoding() );
+    if ( m_nowpeer )
+        m_nowpeer->SetTitle(title, GetFont().GetEncoding() );
 }
 
 wxString wxTopLevelWindowMac::GetTitle() const