Verify the validity of the buffer size in wxBufferedDC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 May 2011 15:47:46 +0000 (15:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 May 2011 15:47:46 +0000 (15:47 +0000)
commitfe576f48fb48ec9d7612d811a7b7d64c41ccebbd
tree0e40968f6974ba772112c418df08d528c70fb3f5
parent8e370f7d07455315ae0f77ba0def17530abcdc66
Verify the validity of the buffer size in wxBufferedDC.

Passing invalid (e.g. negative) buffer size to wxBufferedDC resulted in many
problems later on so refuse it immediately.

Closes #13175.

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