]> git.saurik.com Git - wxWidgets.git/commitdiff
otherwise we always just fix rect at index 0 ...
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 Apr 2005 05:06:24 +0000 (05:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 Apr 2005 05:06:24 +0000 (05:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/region.cpp

index ab424534701419b84e8bea10166cd3d4c3e62a7e..a818ee170ab735e9685da2fc801423be9f1698f5 100644 (file)
@@ -428,7 +428,7 @@ OSStatus wxMacRegionToRectsSetterCallback (
     if (message == kQDRegionToRectsMsgParse)
     {
         RegionToRectsCallbackData *cb = (RegionToRectsCallbackData*) data ;
-        cb->m_rects[cb->m_current] = wxRect( rect->left , rect->top , rect->right - rect->left , rect->bottom - rect->top ) ;
+        cb->m_rects[cb->m_current++] = wxRect( rect->left , rect->top , rect->right - rect->left , rect->bottom - rect->top ) ;
     }
     return noErr;
 }