fix bug introduced in wxRegion::DoUnionWithRect() in r41429 which broke refreshing/repainting in wxGTK1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-12 20:28:56 +00:00
parent 1c78eba4ff
commit 8bb9ea69f1

View 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;