making sure calls don't crash for fully native dialogs which don't have a nowpeer like filedialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-04-13 15:07:40 +00:00
parent d0a7d7b1af
commit aa47eebb1b

View File

@@ -114,6 +114,9 @@ void wxTopLevelWindowMac::Maximize(bool maximize)
bool wxTopLevelWindowMac::IsMaximized() const
{
if ( m_nowpeer == NULL )
return false;
return m_nowpeer->IsMaximized();
}
@@ -125,6 +128,9 @@ void wxTopLevelWindowMac::Iconize(bool iconize)
bool wxTopLevelWindowMac::IsIconized() const
{
if ( m_nowpeer == NULL )
return false;
return m_nowpeer->IsIconized();
}