gecko-dev/gfx/cairo/zero-subpath-bounds.patch

18 строки
546 B
Diff

diff --git a/gfx/cairo/cairo/src/cairo-path-bounds.c b/gfx/cairo/cairo/src/cairo-path-bounds.c
--- a/gfx/cairo/cairo/src/cairo-path-bounds.c
+++ b/gfx/cairo/cairo/src/cairo-path-bounds.c
@@ -139,6 +139,13 @@ static cairo_status_t
static cairo_status_t
_cairo_path_bounder_close_path (void *closure)
{
+ cairo_path_bounder_t *bounder = closure;
+
+ if (bounder->has_initial_point) {
+ _cairo_path_bounder_add_point (bounder, &bounder->current_point);
+ bounder->has_initial_point = FALSE;
+ }
+
return CAIRO_STATUS_SUCCESS;
}