mirror of https://github.com/GNOME/gimp.git
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:
parent
4dca1d5640
commit
7739ffb38a
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue