summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel.pacaud@free.fr>2007-11-11 00:14:34 +0100
committerEmmanuel Pacaud <emmanuel.pacaud@free.fr>2007-11-11 00:14:34 +0100
commit1b71af7e61bd6c55b78e1a9a4c56b93d0b1134ed (patch)
tree746b66293358f1da018b0cef25d98a8730381c0f
parent3554c31e3d28ad5aad35c8fe4c6bb8ce7d297dde (diff)
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.
-rw-r--r--src/cairo-path-fixed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 05f8144b..03b0930a 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,