From: Vadim Zeitlin Date: Fri, 15 Jul 2011 22:58:32 +0000 (+0000) Subject: Ensure we don't modify a shared object in wxOSX wxRegion::DoOffset(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0aab87fddd7cb1a350132772de9d379e1485616e?ds=sidebyside Ensure we don't modify a shared object in wxOSX wxRegion::DoOffset(). Call AllocExclusive() before modifying the object. Closes #13338. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/region.cpp b/src/osx/carbon/region.cpp index 8f3eeb884f..ffd0f106d9 100644 --- a/src/osx/carbon/region.cpp +++ b/src/osx/carbon/region.cpp @@ -191,6 +191,8 @@ bool wxRegion::DoOffset(wxCoord x, wxCoord y) // nothing to do return true; + AllocExclusive(); + verify_noerr( HIShapeOffset( M_REGION , x , y ) ) ; return true ;