Don't enter an infinite loop if a spacer with min size of -1 is used.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Mar 2010 11:40:26 +0000 (11:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Mar 2010 11:40:26 +0000 (11:40 +0000)
commit75738bb65b5db3f5d3106e6fad78c7a4a07f993b
tree7302361cb14423c6988e706cd88823b1a315a824
parente0856740af67e476a6230fb703b06f208437be53
Don't enter an infinite loop if a spacer with min size of -1 is used.

Sizer layout algorithm broke down if min size of an item happened to be -1,
i.e. the same value as we use as a sentinel for indicating that the min size
hasn't been fixed yet. It doesn't make much sense for min size to be negative
in the first place but currently this can happen at least for spacers so deal
with it here by ensuring that the min size we use is positive.

Closes #11842.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/sizer.cpp