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.
This commit is contained in:
Vadim Zeitlin 2015-10-11 00:22:04 +02:00
parent b1314bbca4
commit cfb1e8adbf

View File

@ -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