mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-02 14:30:45 +02:00
pdf: fix rectangle stroke with non rectilinear pen
This commit is contained in:
parent
caf1b826da
commit
51c2f018d7
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue