pdf: fix rectangle stroke with non rectilinear pen

This commit is contained in:
Adrian Johnson 2013-12-26 15:28:29 +10:30 committed by Uli Schlachter
parent caf1b826da
commit 51c2f018d7

View file

@ -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,