diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2013-12-26 15:28:29 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-12-26 15:28:29 +1030 |
commit | 5cafaa7b3bc045a7a26a11986c16fd9419a09922 (patch) | |
tree | 1cd96721f676a3b93e271d1267eab972776fb32f | |
parent | acd78d721e9d1c9c74c88889fbc4580700962ed1 (diff) |
pdf: fix rectangle stroke with non rectilinear pen
-rw-r--r-- | src/cairo-pdf-operators.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c index 84d2441..c2f6bcf 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, |