summaryrefslogtreecommitdiff
path: root/source/fitz/load-tiff.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-05-03 00:03:22 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-05-08 21:07:23 +0800
commit8baa9e7d6ec43792bc1545b840d28254e5f6caac (patch)
tree6e7839ae4041f0515e9978a34901f21e784bfc4d /source/fitz/load-tiff.c
parent9368e0565b98af5295b846be31087ca2111d4fe6 (diff)
downloadmupdf-8baa9e7d6ec43792bc1545b840d28254e5f6caac.tar.xz
tiff: Fix bug where both tiff and fax decoders inverted the image.
Diffstat (limited to 'source/fitz/load-tiff.c')
-rw-r--r--source/fitz/load-tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index 9afcb012..26fc9b22 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -340,7 +340,7 @@ tiff_decode_data(fz_context *ctx, struct tiff *tiff, unsigned char *rp, unsigned
tiff->imagewidth,
tiff->imagelength,
0,
- tiff->photometric == 0);
+ 1);
break;
case 5:
old_tiff = rp[0] == 0 && (rp[1] & 1);