summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-10-19 12:21:40 +0000
committerTor Andersson <tor@ghostscript.com>2010-10-19 12:21:40 +0000
commitebf0fd7b216f3753e4c7f4ae3e8f1ce4b03e00c6 (patch)
tree773d883463192ab31145486678303631cdb1cea4
parent682d4d70a9f8e41cf10b768f1ac86f16d4b14322 (diff)
downloadmupdf-ebf0fd7b216f3753e4c7f4ae3e8f1ce4b03e00c6.tar.xz
Fix typo in memoization case of pixmap color conversion.
-rw-r--r--fitz/res_colorspace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fitz/res_colorspace.c b/fitz/res_colorspace.c
index 7a6ed27a..2ce4525a 100644
--- a/fitz/res_colorspace.c
+++ b/fitz/res_colorspace.c
@@ -419,9 +419,10 @@ fz_stdconvpixmap(fz_pixmap *src, fz_pixmap *dst)
fz_convertcolor(ss, srcv, ds, dstv);
for (k = 0; k < dstn; k++)
*d++ = dstv[k] * 255;
- *d++ = *s++;
fz_hashinsert(lookup, s - srcn, d - dstn);
+
+ *d++ = *s++;
}
}
}