summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-06-23 13:49:09 -0400
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-06-23 13:49:09 -0400
commit96fb49aea82250f5aa4ba940f02f0c4cea34c221 (patch)
tree6d82ec4a1c8bafbf6be9c7a27449efb7fd0c6d89
parent591e11f23de2a02fa2e4298a9b30532c5da1a64e (diff)
Swap the order we read tone reproduction curves.
There is no reason to read them in RBG when RGB is more intuitive.
-rw-r--r--iccread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iccread.c b/iccread.c
index 63029ae..7a5cbb4 100644
--- a/iccread.c
+++ b/iccread.c
@@ -675,15 +675,15 @@ qcms_profile* qcms_profile_from_memory(const void *mem, size_t size)
if (profile->color_space == RGB_SIGNATURE) {
profile->redColorant = read_tag_XYZType(src, index, TAG_rXYZ);
- profile->blueColorant = read_tag_XYZType(src, index, TAG_bXYZ);
profile->greenColorant = read_tag_XYZType(src, index, TAG_gXYZ);
+ profile->blueColorant = read_tag_XYZType(src, index, TAG_bXYZ);
if (!src->valid)
goto invalid_tag_table;
profile->redTRC = read_tag_curveType(src, index, TAG_rTRC);
- profile->blueTRC = read_tag_curveType(src, index, TAG_bTRC);
profile->greenTRC = read_tag_curveType(src, index, TAG_gTRC);
+ profile->blueTRC = read_tag_curveType(src, index, TAG_bTRC);
if (!profile->redTRC || !profile->blueTRC || !profile->greenTRC)
goto invalid_tag_table;