mirror of https://github.com/GNOME/gimp.git
gimp_drawable_get_color_at(): don't g_return_val_if_fail(!indexed, NULL)
2000-03-01 Michael Natterer <mitch@gimp.org> * app/gimpdrawable.c: gimp_drawable_get_color_at(): don't g_return_val_if_fail(!indexed, NULL) because the function seems to work fine for all kinds of drawables. Fixes #6756. Or is this check needed for some obscure special case?
This commit is contained in:
parent
56baa9afc6
commit
c52aec7129
|
@ -1,3 +1,10 @@
|
|||
2000-03-01 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gimpdrawable.c: gimp_drawable_get_color_at(): don't
|
||||
g_return_val_if_fail(!indexed, NULL) because the function seems to
|
||||
work fine for all kinds of drawables. Fixes #6756. Or is this
|
||||
check needed for some obscure special case?
|
||||
|
||||
2000-03-01 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* cursors/selection.xbm
|
||||
|
|
|
@ -425,7 +425,6 @@ gimp_drawable_get_color_at (GimpDrawable *drawable,
|
|||
g_return_val_if_fail (drawable != NULL, NULL);
|
||||
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
g_return_val_if_fail (gimp_drawable_gimage (drawable), NULL);
|
||||
g_return_val_if_fail (!gimp_drawable_is_indexed (drawable), NULL);
|
||||
g_return_val_if_fail (x >= 0 && x < drawable->width &&
|
||||
y >= 0 && y < drawable->height, NULL);
|
||||
|
||||
|
|
|
@ -425,7 +425,6 @@ gimp_drawable_get_color_at (GimpDrawable *drawable,
|
|||
g_return_val_if_fail (drawable != NULL, NULL);
|
||||
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
g_return_val_if_fail (gimp_drawable_gimage (drawable), NULL);
|
||||
g_return_val_if_fail (!gimp_drawable_is_indexed (drawable), NULL);
|
||||
g_return_val_if_fail (x >= 0 && x < drawable->width &&
|
||||
y >= 0 && y < drawable->height, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue