fixed size of colormap property. Patch by Daniel Kobras, fixes bug

2004-05-10  Sven Neumann  <sven@gimp.org>

	* app/xcf/xcf-save.c (xcf_save_prop): fixed size of colormap
	property. Patch by Daniel Kobras, fixes bug #142149.
This commit is contained in:
Sven Neumann 2004-05-10 18:44:08 +00:00 committed by Sven Neumann
parent 7b836237cd
commit 1fd2fa61f5
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-05-10 Sven Neumann <sven@gimp.org>
* app/xcf/xcf-save.c (xcf_save_prop): fixed size of colormap
property. Patch by Daniel Kobras, fixes bug #142149.
2004-05-10 Henrik Brix Andersen <brix@gimp.org>
* plug-ins/common/screenshot.c (shoot_dialog): fixed the spacing

View File

@ -633,7 +633,7 @@ xcf_save_prop (XcfInfo *info,
ncolors = va_arg (args, guint32);
colors = va_arg (args, guchar*);
size = 4 + ncolors;
size = 4 + ncolors * 3;
xcf_write_prop_type_check_error (info, prop_type);
xcf_write_int32_check_error (info, &size, 1);