[cairo-bugs] [Bug 54549] cairo_close_path should not change extents on a "empty" path
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 5 06:36:34 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=54549
--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> 2012-09-05 13:36:34 UTC ---
Not quite. The issue is that the zero-extents are wrong. The path exists but is
degenerate (if you stroke it, it should generate a point for example).
So I think the fix is:
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 459c680..c7b1cab 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -419,6 +419,7 @@ _cairo_path_fixed_move_to (cairo_path_fixed_t *path,
path->has_current_point = TRUE;
path->current_point.x = x;
path->current_point.y = y;
+ path->last_move_point = path->current_point;
return CAIRO_STATUS_SUCCESS;
}
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the cairo-bugs
mailing list