summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}