backport of r61130

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@61131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-06-19 15:30:58 +00:00
parent aa0dea3b83
commit 6409ace06d

View 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