Fixed stupid bug (for getting the bounding box you also have to use

2003-09-16  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpvectors.[ch]: Fixed stupid bug (for getting
	the bounding box you also have to use MAX...).
This commit is contained in:
Simon Budig 2003-09-16 12:41:10 +00:00 committed by Simon Budig
parent d620e7993d
commit ba69b4bd96
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-09-16 Simon Budig <simon@gimp.org>
* app/vectors/gimpvectors.[ch]: Fixed stupid bug (for getting
the bounding box you also have to use MAX...).
2003-09-16 Michael Natterer <mitch@gimp.org>
* app/core/gimpchannel.c (gimp_channel_translate): transform the

View File

@ -946,8 +946,8 @@ gimp_vectors_bounds (const GimpVectors *vectors,
point = g_array_index (stroke_coords, GimpCoords, i);
*x1 = MIN (*x1, point.x);
*y1 = MIN (*y1, point.y);
*x2 = MIN (*x2, point.x);
*y2 = MIN (*y2, point.y);
*x2 = MAX (*x2, point.x);
*y2 = MAX (*y2, point.y);
}
g_array_free (stroke_coords, TRUE);
}