Fix handling of not fully specified min/max size in wxBoxSizer.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:19:47 +0000 (22:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:19:47 +0000 (22:19 +0000)
commitb8885bb39b61f599b16d059a17ea4d9cae7018e7
tree460819f08b2403b1d2e1d8737205ab15bd3f6757
parent6f2df68ec45b0e7ed27d28f1117cdc97552dfb2f
Fix handling of not fully specified min/max size in wxBoxSizer.

wxSizerItem::AddBorderToSize() added in r72344 (see #11497) didn't work
correctly as it replaced unspecified (i.e. set to -1) components of wxSize
with the small positive values that did take effect, contrary to the
intention.

Fix it to only adjust the actually set component(s) of wxSize.

Closes #14696.

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