summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-06-02 16:49:38 +0100
committerRobin Watts <robin.watts@artifex.com>2013-06-03 13:48:27 +0100
commit9c03e52fcbe65f27955dd3e021b2469f1a15f58c (patch)
tree0a60d53b060a6e44450f966f28e154d1b794e32a /fitz
parentb5c628101d6d06ef5ff64ed7e776510a17ed60cf (diff)
downloadmupdf-9c03e52fcbe65f27955dd3e021b2469f1a15f58c.tar.xz
Improve rendering of fts_15_1506.pdf
Negative xstep or ysteps cause problems.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/dev_null.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fitz/dev_null.c b/fitz/dev_null.c
index d92822b3..9e508bee 100644
--- a/fitz/dev_null.c
+++ b/fitz/dev_null.c
@@ -340,6 +340,11 @@ fz_begin_tile_id(fz_device *dev, const fz_rect *area, const fz_rect *view, float
return 0;
}
+ if (xstep < 0)
+ xstep = -xstep;
+ if (ystep < 0)
+ ystep = -ystep;
+
fz_try(ctx)
{
if (dev->begin_tile)