Changed:-

Thu Apr  8 21:19:05 BST 1999 Andy Thomas <alt@gimp.org>

	Changed:-

	* app/image_map.c

	Fixed boundary problem in new function image_map_get_color_at().
This commit is contained in:
BST 1999 Andy Thomas 1999-04-08 20:27:00 +00:00 committed by Andy Thomas
parent 4dca1d5640
commit 7739ffb38a
3 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,11 @@
Thu Apr 8 21:19:05 BST 1999 Andy Thomas <alt@gimp.org>
Changed:-
* app/image_map.c
Fixed boundary problem in new function image_map_get_color_at().
Thu Apr 8 07:12:10 MEST 1999 Sven Neumann <sven@gimp.org>
* app/crop.[ch]: Ok, this is a little bit more than what we

View File

@ -320,8 +320,10 @@ image_map_get_color_at (ImageMap image_map, int x, int y)
if (!image_map ||
(!gimp_drawable_gimage(_image_map->drawable) &&
gimp_drawable_indexed(_image_map->drawable))
|| x < 0 || y < 0 )
gimp_drawable_indexed(_image_map->drawable)) ||
x < 0 || y < 0 ||
x >= _image_map->undo_tiles->width ||
y >= _image_map->undo_tiles->height)
{
return NULL;
}

View File

@ -320,8 +320,10 @@ image_map_get_color_at (ImageMap image_map, int x, int y)
if (!image_map ||
(!gimp_drawable_gimage(_image_map->drawable) &&
gimp_drawable_indexed(_image_map->drawable))
|| x < 0 || y < 0 )
gimp_drawable_indexed(_image_map->drawable)) ||
x < 0 || y < 0 ||
x >= _image_map->undo_tiles->width ||
y >= _image_map->undo_tiles->height)
{
return NULL;
}