summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-12-12 09:01:32 +0000
committerRichard Hughes <richard@hughsie.com>2013-12-12 13:18:57 +0000
commitb4c6e4cb83781945de06af1d1aeb947450d5b2d3 (patch)
treefccf9277e7bb0d3608a1d265713473c789b8f73b
parent2a3e08638cfb0111d3d6d01a111a3206d6980f38 (diff)
downloadcolord-b4c6e4cb83781945de06af1d1aeb947450d5b2d3.tar.gz
Fix the tag 'size' when viewing a profile in cd-iccdump with newer lcms versions
Newer versions of lcms2 don't have the bug where they read the whole tag out, and now returns the size of the read (a good thing!).
-rw-r--r--lib/colord/cd-icc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
index cba0e13..d711b86 100644
--- a/lib/colord/cd-icc.c
+++ b/lib/colord/cd-icc.c
@@ -340,6 +340,7 @@ cd_icc_to_string (CdIcc *icc)
g_string_append_printf (str, "WARNING: Tag size impossible %i", tag_size);
continue;
}
+ g_string_append_printf (str, " size\t%i\n", tag_size);
tag_wrfix = g_new0 (gchar, tag_size);
tag_size = cmsReadRawTag (priv->lcms_profile, sig, tag_wrfix, 4);
memcpy (&tmp, tag_wrfix, 4);
@@ -348,7 +349,6 @@ cd_icc_to_string (CdIcc *icc)
cd_icc_uint32_to_str (tmp, tag_str);
tag_type = GUINT32_FROM_BE (tmp);
g_string_append_printf (str, " type\t'%s' [0x%x]\n", tag_str, tag_type);
- g_string_append_printf (str, " size\t%i\n", tag_size);
/* print tag details */
switch (tag_type) {