]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure we don't modify a shared object in wxOSX wxRegion::DoOffset().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jul 2011 22:58:32 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jul 2011 22:58:32 +0000 (22:58 +0000)
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

index 8f3eeb884f993a71041a111e2193ca68ca867c06..ffd0f106d9f6bcfe9918ff9762fa8151cc2f1dc2 100644 (file)
@@ -191,6 +191,8 @@ bool wxRegion::DoOffset(wxCoord x, wxCoord y)
         // nothing to do
         return true;
 
         // nothing to do
         return true;
 
+    AllocExclusive();
+
     verify_noerr( HIShapeOffset( M_REGION , x , y ) ) ;
 
     return true ;
     verify_noerr( HIShapeOffset( M_REGION , x , y ) ) ;
 
     return true ;