From 0aab87fddd7cb1a350132772de9d379e1485616e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Jul 2011 22:58:32 +0000 Subject: [PATCH] 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 --- src/osx/carbon/region.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ; -- 2.50.0