aboutsummaryrefslogtreecommitdiff
path: root/generic/Tabular.c
diff options
context:
space:
mode:
authorlecoanet2004-03-03 10:16:24 +0000
committerlecoanet2004-03-03 10:16:24 +0000
commite3bb24569b85ff5fea4dcc3eb10e86ae59608967 (patch)
tree4a5a104f74812cd7ac1c914c90c5ae51053d767d /generic/Tabular.c
parent30852dd99b28fddaef4ac37bfa225da343c6be7e (diff)
downloadtkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.zip
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.gz
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.bz2
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.xz
Changes to implement a new behavior for -position attribute and local transforms.
Diffstat (limited to 'generic/Tabular.c')
-rw-r--r--generic/Tabular.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/Tabular.c b/generic/Tabular.c
index 5f508eb..42fa9e3 100644
--- a/generic/Tabular.c
+++ b/generic/Tabular.c
@@ -274,7 +274,9 @@ ComputeCoordinates(ZnItem item,
&field_set->label_pos);
}
else {
- ZnTransformPoint(wi->current_transfo, &tab->pos,
+ ZnPoint pos;
+ pos.x = pos.y = 0;
+ ZnTransformPoint(wi->current_transfo, &pos,
&field_set->label_pos);
}
@@ -673,6 +675,7 @@ static ZnItemClassStruct TABULAR_ITEM_CLASS = {
True, /* has_anchors */
"tabular",
tabular_attrs,
+ Tk_Offset(TabularItemStruct, pos),
Init,
Clone,
Destroy,