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
This commit is contained in:
Sven Neumann
2007-11-15 19:15:10 +00:00
committed by Sven Neumann
parent b9a63e1b49
commit e35f701b65
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;
}
}
@ -771,7 +771,7 @@ save_image (const gchar *filename,
case GIMP_INDEXEDA_IMAGE:
g_message ("TIFF save cannot handle indexed images with alpha channel.");
default:
return FALSE;
return FALSE;
}
if (compression == COMPRESSION_CCITTFAX3 ||