From cfb1e8adbf0e7aaa6d5d4e6b9b7e273ae331b265 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 11 Oct 2015 00:22:04 +0200 Subject: [PATCH] Don't update min size in wxBoxSizer::RecalcSizes() This seems to be just unnecessary as RecalcSizes() is only supposed to reposition the child elements and CalcMin() will be called later again if the min size needs to be recomputed. --- src/common/sizer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index cd2e50c58e..9618d02db1 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -2211,9 +2211,6 @@ void wxBoxSizer::RecalcSizes() minMajorSize += GetSizeInMajorDir(item->GetMinSizeWithBorder()); } - // update our min size have changed - SizeInMajorDir(m_minSize) = minMajorSize; - // space and sum of proportions for the remaining items, both may change // below