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:
@@ -114,6 +114,9 @@ void wxTopLevelWindowMac::Maximize(bool maximize)
|
|||||||
|
|
||||||
bool wxTopLevelWindowMac::IsMaximized() const
|
bool wxTopLevelWindowMac::IsMaximized() const
|
||||||
{
|
{
|
||||||
|
if ( m_nowpeer == NULL )
|
||||||
|
return false;
|
||||||
|
|
||||||
return m_nowpeer->IsMaximized();
|
return m_nowpeer->IsMaximized();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,6 +128,9 @@ void wxTopLevelWindowMac::Iconize(bool iconize)
|
|||||||
|
|
||||||
bool wxTopLevelWindowMac::IsIconized() const
|
bool wxTopLevelWindowMac::IsIconized() const
|
||||||
{
|
{
|
||||||
|
if ( m_nowpeer == NULL )
|
||||||
|
return false;
|
||||||
|
|
||||||
return m_nowpeer->IsIconized();
|
return m_nowpeer->IsIconized();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user