color-lcms: save ICC profile version string with a single decimal value
We have a string describing the ICC profile. cmsGetProfileVersion() returns a float value, and we are converting that to string with "%f" and saving to this description. Instead, use "%.1f" to restrict it to a single decimal value, which is enough. With this change we have e.g. "version 4.4" instead of "version 4.4000000". Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
8a1f56310c
commit
cb542dd56a
@ -364,7 +364,7 @@ make_icc_file_description(cmsHPROFILE profile,
|
||||
"%02x", md5sum->bytes[i]);
|
||||
}
|
||||
|
||||
str_printf(&desc, "ICCv%f %s %s", cmsGetProfileVersion(profile),
|
||||
str_printf(&desc, "ICCv%.1f %s %s", cmsGetProfileVersion(profile),
|
||||
name_part, md5sum_str);
|
||||
|
||||
return desc;
|
||||
|
Loading…
Reference in New Issue
Block a user