summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-operators.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2013-12-26 15:28:29 +1030
committerAdrian Johnson <ajohnson@redneon.com>2013-12-26 15:28:29 +1030
commit5cafaa7b3bc045a7a26a11986c16fd9419a09922 (patch)
tree1cd96721f676a3b93e271d1267eab972776fb32f /src/cairo-pdf-operators.c
parentacd78d721e9d1c9c74c88889fbc4580700962ed1 (diff)
downloadcairo-5cafaa7b3bc045a7a26a11986c16fd9419a09922.tar.gz
pdf: fix rectangle stroke with non rectilinear pen
Diffstat (limited to 'src/cairo-pdf-operators.c')
-rw-r--r--src/cairo-pdf-operators.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index 84d2441cf..c2f6bcf4c 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -510,7 +510,9 @@ _cairo_pdf_operators_emit_path (cairo_pdf_operators_t *pdf_operators,
info.output = word_wrap;
info.path_transform = path_transform;
info.line_cap = line_cap;
- if (_cairo_path_fixed_is_rectangle (path, &box)) {
+ if (_cairo_path_fixed_is_rectangle (path, &box) &&
+ ((path_transform->xx == 0 && path_transform->yy == 0) ||
+ (path_transform->xy == 0 && path_transform->yx == 0))) {
status = _cairo_pdf_path_rectangle (&info, &box);
} else {
status = _cairo_path_fixed_interpret (path,