]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug introduced in wxRegion::DoUnionWithRect() in r41429 which broke refreshing...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jan 2008 20:28:56 +0000 (20:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jan 2008 20:28:56 +0000 (20:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk1/region.cpp

index b8f140cb72ffd8c9db625032d01dc28e61dea6ff..ea44a6498fbecb726f296b25f8ac5a6631fb5bf9 100644 (file)
@@ -187,7 +187,9 @@ bool wxRegion::DoUnionWithRect(const wxRect& r)
         rect.width = r.width;
         rect.height = r.height;
 
-        gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
+        GdkRegion *reg = gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
+        gdk_region_destroy( M_REGIONDATA->m_region );
+        M_REGIONDATA->m_region = reg;
     }
 
     return TRUE;