made my last commit compile. Sorry.

2003-09-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_fill): made my last
	commit compile. Sorry.
This commit is contained in:
Michael Natterer 2003-09-06 15:20:46 +00:00 committed by Michael Natterer
parent 31b754df21
commit 27ad396d10
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-09-06 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.c (gimp_drawable_fill): made my last
commit compile. Sorry.
2003-09-06 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.c: code cleanup.

View File

@ -717,10 +717,10 @@ gimp_drawable_fill (GimpDrawable *drawable,
case GIMP_INDEXED:
{
gint index;
guchar index;
gimp_image_transform_color (gimage, drawable, &i, GIMP_RGB, c);
c[INDEXED_PIX] = i;
gimp_image_transform_color (gimage, drawable, &index, GIMP_RGB, c);
c[INDEXED_PIX] = index;
c[ALPHA_I_PIX] = c[ALPHA_PIX];
if (drawable_type != GIMP_INDEXEDA_IMAGE)