Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

2008-06-27 Sebastien Pouliot <sebastien@ximian.com>

	* region.c: Handle the case were we compute a negative Height 
	value while building the rectangle list for exclude.
	[Fix bug #402613]


svn path=/trunk/libgdiplus/; revision=106765
  • Loading branch information...
commit 6c97b10557bca89a47a52da9b90d6a31d177f227 1 parent 6ebebaa
Sebastien Pouliot authored
Showing with 8 additions and 0 deletions.
  1. +6 −0 src/ChangeLog
  2. +2 −0  src/region.c
View
6 src/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-27 Sebastien Pouliot <sebastien@ximian.com>
+
+ * region.c: Handle the case were we compute a negative Height
+ value while building the rectangle list for exclude.
+ [Fix bug #402613]
+
2008-04-25 Sebastien Pouliot <sebastien@ximian.com>
* region.c: Normalize rectangles (apply negative width and height
View
2  src/region.c
@@ -630,6 +630,8 @@ gdip_combine_exclude (GpRegion *region, GpRectF *rtrg, int cntt)
newrect.Y = current.Y;
if (current.Y >= recttrg->Y) { /* Our rect intersects in the upper part with another rect */
newrect.Height = MIN (recttrg->Y + recttrg->Height - current.Y, current.Height);
+ if (newrect.Height < 0)
+ newrect.Height = current.Height;
if (current.X >= recttrg->X) { /* Hit from behind */
newrect.X = recttrg->X + recttrg->Width;
Please sign in to comment.
Something went wrong with that request. Please try again.