diff options
-rw-r--r-- | source/fitz/load-tiff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 52df3de3..94bf2dc1 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -904,8 +904,8 @@ fz_load_tiff_info_subimage(fz_context *ctx, unsigned char *buf, int len, int *wp *wp = tiff.imagewidth; *hp = tiff.imagelength; - *xresp = tiff.xresolution; - *yresp = tiff.yresolution; + *xresp = (tiff.xresolution ? tiff.xresolution : 96); + *yresp = (tiff.yresolution ? tiff.yresolution : 96); *cspacep = tiff.colorspace; } fz_always(ctx) |