summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-10-18 21:30:22 +0200
committerBenjamin Otte <otte@gnome.org>2009-10-18 21:30:22 +0200
commitcacf9ccedffa0c804a56c76c8ab17bf81831b621 (patch)
treea41df46d59762b3337ec4ec89a4bcb1cd92e3cb1
parenta70705b2ede8c0dc401f28405641e70f8a6d8d92 (diff)
[path] Fix compiler warnings
-rw-r--r--src/cairo-path-fill.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c
index c2deadc4..037b8078 100644
--- a/src/cairo-path-fill.c
+++ b/src/cairo-path-fill.c
@@ -64,8 +64,8 @@ _cairo_filler_move_to (void *closure,
cairo_filler_t *filler = closure;
cairo_polygon_t *polygon = filler->polygon;
- _cairo_polygon_close (polygon);
- return _cairo_polygon_move_to (polygon, point);
+ return _cairo_polygon_close (polygon) ||
+ _cairo_polygon_move_to (polygon, point);
}
static cairo_status_t
@@ -122,8 +122,7 @@ _cairo_path_fixed_fill_to_polygon (const cairo_path_fixed_t *path,
if (unlikely (status))
return status;
- _cairo_polygon_close (polygon);
- status = _cairo_polygon_status (polygon);
+ status = _cairo_polygon_close (polygon);
_cairo_filler_fini (&filler);
return status;