Commit 7739ffb3 authored by BST 1999 Andy Thomas's avatar BST 1999 Andy Thomas Committed by Andy Thomas

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().
parent 4dca1d56
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
......
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment