]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
need wxUSE_WCHAR_T around wxConvLocal
[wxWidgets.git] / src / common / wincmn.cpp
index 8e3d5e463438d1ad67c26022146f73e69771fdfe..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;
 }
@@ -1748,3 +1748,4 @@ void wxWindowBase::ReleaseMouse()
                GetCapture());
 }
 
+// vi:sts=4:sw=4:et