summaryrefslogtreecommitdiff
path: root/src/cairo-path-fill.c
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 /src/cairo-path-fill.c
parenta70705b2ede8c0dc401f28405641e70f8a6d8d92 (diff)
downloadcairo-cacf9ccedffa0c804a56c76c8ab17bf81831b621.tar.gz
[path] Fix compiler warnings
Diffstat (limited to 'src/cairo-path-fill.c')
-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 c2deadc46..037b8078e 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;