From b61df4aa5fd523b8f331ef8199c3cb0fb9c0d59e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jan 2008 20:28:56 +0000 Subject: [PATCH] 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 --- src/gtk1/region.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.45.2