summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-10-19 15:48:13 -0700
committerCarl Worth <cworth@cworth.org>2006-10-19 15:48:13 -0700
commitb1944e1672ee6faa034dba4d8cf730886c35e848 (patch)
tree2119e514a900ad4d19e8a3f39d2823d418648dbe
parentf894ebf98022ecf5844cd50840e916d6ddbea0bf (diff)
Fix bug in _cairo_clip_init_deep_copy (fixes clip-push-group crash)
Thanks to Miklós Erdélyi <erdelyim@gmail.com> for reporting the original problem and suggesting the fix.
-rw-r--r--src/cairo-clip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 516e3b0bd..83dda7b6a 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -563,11 +563,11 @@ _cairo_clip_init_deep_copy (cairo_clip_t *clip,
}
if (other->surface) {
- _cairo_surface_clone_similar (target, clip->surface,
- clip->surface_rect.x,
- clip->surface_rect.y,
- clip->surface_rect.width,
- clip->surface_rect.height,
+ _cairo_surface_clone_similar (target, other->surface,
+ other->surface_rect.x,
+ other->surface_rect.y,
+ other->surface_rect.width,
+ other->surface_rect.height,
&clip->surface);
clip->surface_rect = other->surface_rect;
}