Commit 8f3cee42 authored by Michael Natterer's avatar Michael Natterer 😴

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

parent 4503dad7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment