X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4d799e9ea2ff317ac8405cf07eca5dd2c756530..ea412ac4eb9f19e3c28dfa32aa9099a81ac7c74c:/src/osx/toplevel_osx.cpp?ds=sidebyside diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index 16c88a85d8..785a0e10c2 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -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(); }