app: also fix the calls to xcf_read,write-component()

This commit is contained in:
Michael Natterer 2017-10-01 17:43:10 +02:00
parent 4503dad78c
commit 8f3cee4241
2 changed files with 2 additions and 2 deletions

View File

@ -2061,7 +2061,7 @@ xcf_load_tile (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_read_component (info, bpp / n_components, tile_data,
tile_size / n_components);
tile_size / bpp * n_components);
}
gegl_buffer_set (buffer, tile_rect, 0, format, tile_data,

View File

@ -1646,7 +1646,7 @@ xcf_save_tile (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_write_component_check_error (info, bpp / n_components, tile_data,
tile_size / n_components);
tile_size / bpp * n_components);
}
return TRUE;