]> git.saurik.com Git - wxWidgets.git/commitdiff
Calling sizerItem->SetWindow shoudl set the minsize too.
authorRobin Dunn <robin@alldunn.com>
Fri, 7 Nov 2003 07:04:55 +0000 (07:04 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 7 Nov 2003 07:04:55 +0000 (07:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/sizer.h

index 3f7d8bc35482f5d25fc1d49755a986c0589ef82c..7f7481fed32afa0df5a2c8303bf8c51fa4d998d5 100644 (file)
@@ -112,7 +112,7 @@ public:
     wxWindow *GetWindow() const
         { return m_window; }
     void SetWindow( wxWindow *window )
     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 )
     wxSizer *GetSizer() const
         { return m_sizer; }
     void SetSizer( wxSizer *sizer )