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: