diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-02 14:03:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-02 15:44:51 +0000 |
commit | f230ce7658910c7f4f8feb722b77a2141824f963 (patch) | |
tree | 76701661d2ee756d605e92f9d6c5e344527e9aef /src/cairo-path-bounds.c | |
parent | 163c326c82a45c1f3ee84bbfaee2cc2e6dc1fafc (diff) | |
download | cairo-f230ce7658910c7f4f8feb722b77a2141824f963.tar.gz |
[path] Fix typo in bounds for empty path.
We set the width to be zero, twice, and the height not even once!
Diffstat (limited to 'src/cairo-path-bounds.c')
-rw-r--r-- | src/cairo-path-bounds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-path-bounds.c b/src/cairo-path-bounds.c index 705170cce..7047ca860 100644 --- a/src/cairo-path-bounds.c +++ b/src/cairo-path-bounds.c @@ -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); |