[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:
Chris Wilson 2009-01-02 14:03:35 +00:00
parent 163c326c82
commit f230ce7658

View file

@ -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);