mirror of https://github.com/GNOME/gimp.git
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:
parent
7b836237cd
commit
1fd2fa61f5
|
@ -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
|
||||
|
|
|
@ -628,12 +628,12 @@ xcf_save_prop (XcfInfo *info,
|
|||
|
||||
case PROP_COLORMAP:
|
||||
{
|
||||
guint32 ncolors;
|
||||
guchar *colors;
|
||||
guint32 ncolors;
|
||||
guchar *colors;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue