]> git.saurik.com Git - wxWidgets.git/commit
Ensure that we never return negative client size.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 16 May 2011 14:07:40 +0000 (14:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 16 May 2011 14:07:40 +0000 (14:07 +0000)
commit352a7d6c4601ea41dd24a3c0b3dbae5f363f36ef
tree26427b7ad8a1ba7718434e079c368766fb90f9d7
parent5f081e28fa15a54a62b6eb08105f68c0c713eaf8
Ensure that we never return negative client size.

wxMSW could return negative client size for tiny windows with borders, this
was unexpected and shouldn't happen so explicitly ensure it does not.

Also add a unit test to check that this problem doesn't exist in other ports.

Closes #13184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/window.cpp
tests/window/clientsize.cpp