mirror of https://github.com/GNOME/gimp.git
app: also fix the calls to xcf_read,write-component()
This commit is contained in:
parent
4503dad78c
commit
8f3cee4241
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue