From 1621c234d152d16afe6f016ad8a6f49ef780c02b Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Fri, 7 Nov 2003 07:04:55 +0000
Subject: [PATCH] Calling sizerItem->SetWindow shoudl set the minsize too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 include/wx/sizer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/wx/sizer.h b/include/wx/sizer.h
index 3f7d8bc354..7f7481fed3 100644
--- a/include/wx/sizer.h
+++ b/include/wx/sizer.h
@@ -112,7 +112,7 @@ public:
     wxWindow *GetWindow() const
         { return m_window; }
     void SetWindow( wxWindow *window )
-        { m_window = window; }
+        { m_window = window; m_minSize = window->GetSize(); }
     wxSizer *GetSizer() const
         { return m_sizer; }
     void SetSizer( wxSizer *sizer )
-- 
2.47.2