From: Vadim Zeitlin Date: Sat, 12 Jan 2008 20:28:56 +0000 (+0000) Subject: fix bug introduced in wxRegion::DoUnionWithRect() in r41429 which broke refreshing... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b61df4aa5fd523b8f331ef8199c3cb0fb9c0d59e?ds=inline fix bug introduced in wxRegion::DoUnionWithRect() in r41429 which broke refreshing/repainting in wxGTK1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk1/region.cpp b/src/gtk1/region.cpp index b8f140cb72..ea44a6498f 100644 --- a/src/gtk1/region.cpp +++ b/src/gtk1/region.cpp @@ -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;