1diff --git a/gfx/cairo/cairo/src/cairo-path-bounds.c b/gfx/cairo/cairo/src/cairo-path-bounds.c
2--- a/gfx/cairo/cairo/src/cairo-path-bounds.c
3+++ b/gfx/cairo/cairo/src/cairo-path-bounds.c
4@@ -139,6 +139,13 @@ static cairo_status_t
5 static cairo_status_t
6 _cairo_path_bounder_close_path (void *closure)
7 {
8+    cairo_path_bounder_t *bounder = closure;
9+
10+    if (bounder->has_initial_point) {
11+	_cairo_path_bounder_add_point (bounder, &bounder->current_point);
12+	bounder->has_initial_point = FALSE;
13+    }
14+
15     return CAIRO_STATUS_SUCCESS;
16 }
17
18