Commit e35f701b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed bug in colormap handling (bug #497103).

2007-11-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-save.c (save_image): fixed bug in 
colormap
	handling (bug #497103).


svn path=/trunk/; revision=24165
parent b9a63e1b
2007-11-15 Sven Neumann <sven@gimp.org>
* plug-ins/common/tiff-save.c (save_image): fixed bug in colormap
handling (bug #497103).
2007-11-15 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-dnd.c
......
......@@ -755,9 +755,9 @@ save_image (const gchar *filename,
for (i = 0; i < colors; i++)
{
red[i] = *cmap++ * 65535 / 255;
grn[i] = *cmap++ * 65535 / 255;
blu[i] = *cmap++ * 65535 / 255;
red[i] = cmap[i * 3 + 0] * 65535 / 255;
grn[i] = cmap[i * 3 + 1] * 65535 / 255;
blu[i] = cmap[i * 3 + 2] * 65535 / 255;
}
}
......
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