diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 5b271f01a2..45ef33843b 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -737,6 +737,13 @@ bool wxTopLevelWindowMSW::IsMaximized() const void wxTopLevelWindowMSW::Iconize(bool iconize) { + if ( iconize == m_iconized ) + { + // Do nothing, in particular don't restore non-iconized windows when + // Iconize(false) is called as this would wrongly un-maximize them. + return; + } + if ( IsShown() ) { // change the window state immediately