diff --git a/app/pdb/image-cmds.c b/app/pdb/image-cmds.c index fa159936fa..cf3d600e9b 100644 --- a/app/pdb/image-cmds.c +++ b/app/pdb/image-cmds.c @@ -1532,7 +1532,7 @@ image_get_colormap_invoker (GimpProcedure *procedure, colormap_data = gimp_image_get_colormap (image); colormap = g_bytes_new_take (colormap_data, - gimp_image_get_colormap_size (image)); + 3 * gimp_image_get_colormap_size (image)); } return_vals = gimp_procedure_get_return_values (procedure, success, diff --git a/pdb/groups/image.pdb b/pdb/groups/image.pdb index 5964770020..4ac4a6121a 100644 --- a/pdb/groups/image.pdb +++ b/pdb/groups/image.pdb @@ -1523,7 +1523,7 @@ HELP colormap_data = gimp_image_get_colormap (image); colormap = g_bytes_new_take (colormap_data, - gimp_image_get_colormap_size (image)); + 3 * gimp_image_get_colormap_size (image)); } CODE );