From f230ce7658910c7f4f8feb722b77a2141824f963 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 2 Jan 2009 14:03:35 +0000 Subject: [PATCH] [path] Fix typo in bounds for empty path. We set the width to be zero, twice, and the height not even once! --- src/cairo-path-bounds.c | 6 +++--- 1 file 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);