[cairo-commit] src/cairo-path-fixed.c
Emmanuel Pacaud
emmanuel at kemper.freedesktop.org
Sat Nov 10 15:13:47 PST 2007
src/cairo-path-fixed.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1b71af7e61bd6c55b78e1a9a4c56b93d0b1134ed
Author: Emmanuel Pacaud <emmanuel.pacaud at free.fr>
Date: Sun Nov 11 00:14:34 2007 +0100
Fix _cairo_path_fixed_init_copy.
All the copied data buffers except the first one weren't completely
initialized (num_ops and num_points). That was the cause of the failure
of some vector surface tests, like random-intersections.
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 05f8144..03b0930 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -115,6 +115,8 @@ _cairo_path_fixed_init_copy (cairo_path_fixed_t *path,
_cairo_path_fixed_fini (path);
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
}
+ buf->num_ops = other_buf->num_ops;
+ buf->num_points = other_buf->num_points;
memcpy (buf->op, other_buf->op,
buf->num_ops * sizeof (buf->op[0]));
memcpy (buf->points, other_buf->points,
More information about the cairo-commit
mailing list