From 3a5910cbe95603698b984cc6d8d41bbe7e2f89d9 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Wed, 23 Mar 2005 05:12:12 +0000 Subject: [PATCH] Blind bug fix to bug reported by Angel Kry. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/sizer.h | 5 ++++- src/common/sizer.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 9b84741354..7969475a07 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -477,7 +477,10 @@ public: // Recursively call wxWindow::Show () on all sizer items. virtual void ShowItems (bool show); - void Show(bool show) { m_isShown = show; } + void Show(bool show) + { m_isShown = show; + ShowItems(show); + } bool IsShown() const { return m_isShown; } protected: diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index f959eb34b2..e22859979b 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -416,7 +416,7 @@ void wxSizerItem::Show( bool show ) break; case Item_Sizer: - m_sizer->ShowItems(show); + m_sizer->Show(show); break; case Item_Spacer: -- 2.45.2