Don't set negative size when using constraints for layout.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:43:53 +0000 (10:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:43:53 +0000 (10:43 +0000)
commit7e843c0e2bc193f4e76c6e428e795fe7786f02f8
treedf9f0123e930a2745afe7b83d356dfc054a6c2d9
parentb35549525f2a8dd584fdda158829e8406da0541e
Don't set negative size when using constraints for layout.

Passing negative size to GTK+ results in error messages and in the future
wxWindow::SetSize() itself might assert if passed negative size so just avoid
setting it in the first place even if there is not enough space for
everything.

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