mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 10:18:02 +02:00
[path] Fix typo in bounds for empty path.
We set the width to be zero, twice, and the height not even once!
This commit is contained in:
parent
163c326c82
commit
f230ce7658
1 changed files with 3 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ _cairo_path_fixed_approximate_extents (cairo_path_fixed_t *path,
|
|||
_cairo_box_round_to_rectangle (&bounder.extents, extents);
|
||||
} else {
|
||||
extents->x = extents->y = 0;
|
||||
extents->width = extents->width = 0;
|
||||
extents->width = extents->height = 0;
|
||||
}
|
||||
|
||||
_cairo_path_bounder_fini (&bounder);
|
||||
|
|
@ -206,7 +206,7 @@ _cairo_path_fixed_approximate_fill_extents (cairo_path_fixed_t *path,
|
|||
_cairo_box_round_to_rectangle (&bounder.extents, extents);
|
||||
} else {
|
||||
extents->x = extents->y = 0;
|
||||
extents->width = extents->width = 0;
|
||||
extents->width = extents->height = 0;
|
||||
}
|
||||
|
||||
_cairo_path_bounder_fini (&bounder);
|
||||
|
|
@ -245,7 +245,7 @@ _cairo_path_fixed_approximate_stroke_extents (cairo_path_fixed_t *path,
|
|||
_cairo_box_round_to_rectangle (&bounder.extents, extents);
|
||||
} else {
|
||||
extents->x = extents->y = 0;
|
||||
extents->width = extents->width = 0;
|
||||
extents->width = extents->height = 0;
|
||||
}
|
||||
|
||||
_cairo_path_bounder_fini (&bounder);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue