Don't limit window size to (0, 0) in wxSizer if getting display size failed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:07:37 +0000 (15:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:07:37 +0000 (15:07 +0000)
commitb83d8f7339336ced73b6659104686f84a4806d0a
treef959a2012dddf7df907ebcd63e061c5abba44793
parentad6f09f543cc0dbf657cac4a6242d263b9d760dd
Don't limit window size to (0, 0) in wxSizer if getting display size failed.

It's possible that wxDisplay::GetClientArea() returns (0, 0) size indicating
that it failed. Don't set the maximal window size to (0, 0) in this case as
this prevents the user from seeing the window at all and just don't do
anything instead.

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