From: Vadim Zeitlin Date: Sat, 14 May 2011 14:18:17 +0000 (+0000) Subject: Fix restoring of wxAuiManager::m_has_maximized when restoring perspective. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/55908cf0960e2478a95c8d7ef404d5dde893ba1f Fix restoring of wxAuiManager::m_has_maximized when restoring perspective. If the perspective being loaded contains a maximized pane, set the m_has_maximized flag to true. Otherwise the flag and the effective pane state was out of sync resulting in several problems in the UI behaviour. Closes #12527. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 021cecd9a9..b4b08093c7 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -1589,6 +1589,7 @@ bool wxAuiManager::LoadPerspective(const wxString& layout, bool update) input.Replace(wxT("\\|"), wxT("\a")); input.Replace(wxT("\\;"), wxT("\b")); + m_has_maximized = false; while (1) { wxAuiPaneInfo pane; @@ -1631,6 +1632,9 @@ bool wxAuiManager::LoadPerspective(const wxString& layout, bool update) LoadPaneInfo(pane_part, pane); + if ( pane.IsMaximized() ) + m_has_maximized = true; + wxAuiPaneInfo& p = GetPane(pane.name); if (!p.IsOk()) {