XCF saving bug in xcf_save_buffer()
GIMP version: 2.10
I am trying to load a XCF file saved with GIMP 2.10 : deftitle1_v011.xcf
This file is using the format with 64bits offsets.
And when trying to load the "levels", the level below 1st have unconsistant offsets.
I think there is a bug in
/* fake an empty level */ tmp1 = 0; width /= 2; height /= 2; xcf_write_int32_check_error (info, (guint32 *) &width, 1); xcf_write_int32_check_error (info, (guint32 *) &height, 1); xcf_write_int32_check_error (info, (guint32 *) &tmp1, 1);
it is writing an int32 for the offset, it should use xcf_write_offset_check_error() I think.
xcf_load_buffer() just discards levels below first, so GIMP hasn't any problem reloading the file ;)
but any future version of GIMP that would effectively save/load more than 1 level will have a problem !