diff options
Diffstat (limited to 'generic/Icon.c')
-rw-r--r-- | generic/Icon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/Icon.c b/generic/Icon.c index 16ec3f0..81979a4 100644 --- a/generic/Icon.c +++ b/generic/Icon.c @@ -280,7 +280,7 @@ ComputeCoordinates(ZnItem item, ZnTransformPoint(&t, quad, &pos); } else { - pos = icon->pos; + pos.x = pos.y = 0; } ZnAnchor2Origin(&pos, (ZnReal) width, (ZnReal) height, icon->anchor, quad); quad[1].x = quad[0].x; @@ -855,6 +855,7 @@ static ZnItemClassStruct ICON_ITEM_CLASS = { True, /* has_anchors */ "icon", icon_attrs, + Tk_Offset(IconItemStruct, pos), Init, Clone, Destroy, |