X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e11f46363fedb4fd0d2a462a8060bb8dd679b2a0..4395fb21f651f8a08905c34507692ca7f902dfe5:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 5c39f36e9d..dc9f440925 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1466,6 +1466,9 @@ void wxWindowBase::DeleteRelatedConstraints() void wxWindowBase::SetSizer(wxSizer *sizer, bool deleteOld) { + if ( sizer == m_windowSizer) + return; + if ( deleteOld ) delete m_windowSizer;