summaryrefslogtreecommitdiff
path: root/source/fitz/output-pcl.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-01 17:11:57 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-01 17:11:57 +0000
commit3cf7524de67c850997bb2d56fb2a4871caac0d8a (patch)
tree4cc92e512ef4494af4f297d6a842ffef4cc0bf3e /source/fitz/output-pcl.c
parentdbc4039c4f467497e6a9c1364fff857e82d675e7 (diff)
downloadmupdf-3cf7524de67c850997bb2d56fb2a4871caac0d8a.tar.xz
Fix bug in pcl page size finding code.
Don't bale on the first 'large enough' match.
Diffstat (limited to 'source/fitz/output-pcl.c')
-rw-r--r--source/fitz/output-pcl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c
index a62141ed..5a5ba996 100644
--- a/source/fitz/output-pcl.c
+++ b/source/fitz/output-pcl.c
@@ -562,14 +562,12 @@ static void guess_paper_size(fz_pcl_options *pcl, int w, int h, int xres, int yr
best_waste = waste;
rotated = 0;
size = i;
- break;
}
if ((pcl->features & PCL_HAS_ORIENTATION) && w <= papersizes[i].height && h <= papersizes[i].width)
{
best_waste = waste;
rotated = 1;
size = i;
- break;
}
}
}