]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Delay checking for the requested sash position until the first
[wxWidgets.git] / src / common / wincmn.cpp
index 5c39f36e9da3353c3583dc157854cc75c55b76be..dc9f440925cd7ea1e6dfbfc56c6e3e694b2c1f19 100644 (file)
@@ -1466,6 +1466,9 @@ void wxWindowBase::DeleteRelatedConstraints()
 
 void wxWindowBase::SetSizer(wxSizer *sizer, bool deleteOld)
 {
+    if ( sizer == m_windowSizer)
+        return;
+    
     if ( deleteOld )
         delete m_windowSizer;