Don't create a valid wxRegion when using default ctor in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:56:40 +0000 (21:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:56:40 +0000 (21:56 +0000)
commit265dd232419333a141779e6616df094e4337268d
treee2cc4071de4db9590c01b09d7f69817ea855dcf6
parent63415ba9f5331b2b96215f8a570e05623ea6ec42
Don't create a valid wxRegion when using default ctor in wxOSX.

Default constructing a wxRegion created an object that unexpectedly passed
IsOk() test in wxOSX. This was completely unexpected so don't do this and
leave default constructed wxRegion invalid, as in the other ports.

Update DoCombine() to be able to deal with the case of an invalid source
region in a way consistent with the other ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/carbon/region.h
src/osx/carbon/region.cpp