aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Icon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/Icon.c b/generic/Icon.c
index 4526ea2..16ec3f0 100644
--- a/generic/Icon.c
+++ b/generic/Icon.c
@@ -483,7 +483,7 @@ Draw(ZnItem item)
ZnCurrentClip(wi, &current_clip, &current_clip_box, NULL);
TkSetRegion(wi->dpy, mask_gc, current_clip);
XSetClipOrigin(wi->dpy, mask_gc,
- -current_clip_box->orig.x, -current_clip_box->orig.y);
+ -item->item_bounding_box.orig.x, -item->item_bounding_box.orig.y);
XPutImage(wi->dpy, mask, mask_gc, dest_mask,
0, 0, 0, 0, dest_im_width, dest_im_height);
XPutImage(wi->dpy, drw, gc, dest_im,