]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/toplevel_osx.cpp
Compilation fix for ANSI build after r61898.
[wxWidgets.git] / 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