]> git.saurik.com Git - wxWidgets.git/commit
Fix crash in wxRegion in wxOSX/Carbon.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Dec 2011 15:39:42 +0000 (15:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Dec 2011 15:39:42 +0000 (15:39 +0000)
commit00c784a4d13021bcdc0f75fcd505ca984c0719e9
treef0cae1ef98d493e1ff1fb3b3e62a737688e19049
parent0d2a693bbdb1b21a8678baa1509c550b3141695c
Fix crash in wxRegion in wxOSX/Carbon.

Apparently some code expects to be able to call wxRegion::GetWXHRGN() even on
an invalid wxRegion. Return NULL in this case instead of crashing.

This fixes crash on startup of the widgets sample.

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