]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
fix for toolbar radio buttons event generation
[wxWidgets.git] / src / common / wincmn.cpp
index f738746d004b99cd4f6ac1ca52a6728c366cdcb7..2641125c24f86cb5226e7f20f8aa33d1e812449a 100644 (file)
@@ -1185,9 +1185,9 @@ void wxWindowBase::DeleteRelatedConstraints()
 }
 #endif
 
-void wxWindowBase::SetSizer(wxSizer *sizer)
+void wxWindowBase::SetSizer(wxSizer *sizer, bool deleteOld)
 {
-    if (m_windowSizer) delete m_windowSizer;
+    if (m_windowSizer && deleteOld) delete m_windowSizer;
 
     m_windowSizer = sizer;
 }