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:
parent
d0a7d7b1af
commit
aa47eebb1b
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue