From 6cd205f5a89932aa365d293076bd2cae4382a255 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 18 Jul 2010 11:55:54 +0000 Subject: [PATCH] Update AUI frame capture when it changes. Set the updated label in wxAuiManager::Update() to ensure the labels stored two places are always in sync. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index a1f7fb11df..3680831e6c 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -2546,6 +2546,9 @@ void wxAuiManager::Update() style |= wxRESIZE_BORDER; p.frame->SetWindowStyleFlag(style); + if (p.frame->GetLabel() != p.caption) + p.frame->SetLabel(p.caption); + if (p.frame->IsShown() != p.IsShown()) p.frame->Show(p.IsShown()); } -- 2.45.2