summaryrefslogtreecommitdiff
path: root/pdf/pdf_annot.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-09-01 17:06:36 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-09-01 17:06:36 +0200
commit00367c42db4c5c2d2db6cf823f59b7ea6daa8376 (patch)
tree685c1ec271533fb3eda2d3bd3d225af127eac8ed /pdf/pdf_annot.c
parentde0ce21ad72532b731ba3826de82d5aefc0f86de (diff)
downloadmupdf-00367c42db4c5c2d2db6cf823f59b7ea6daa8376.tar.xz
Use correct concatenation order for XObject matrix.
Diffstat (limited to 'pdf/pdf_annot.c')
-rw-r--r--pdf/pdf_annot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index ecb4824a..2fc9d7bb 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -168,6 +168,7 @@ pdf_transform_annot(pdf_annot *annot)
h = (rect.y1 - rect.y0) / (bbox.y1 - bbox.y0);
x = rect.x0 - bbox.x0;
y = rect.y0 - bbox.y0;
+
annot->matrix = fz_concat(fz_scale(w, h), fz_translate(x, y));
}