aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
authorlecoanet2002-06-25 08:06:30 +0000
committerlecoanet2002-06-25 08:06:30 +0000
commit799546eebbc22ca42d5afb32505022dddb0b4c99 (patch)
tree1130caf7753f5ac757a25d152ff69f081a529152 /generic/Group.c
parentaf5d78d48a9493b0ef1f0fa8b98e99d1179c6677 (diff)
downloadtkzinc-799546eebbc22ca42d5afb32505022dddb0b4c99.zip
tkzinc-799546eebbc22ca42d5afb32505022dddb0b4c99.tar.gz
tkzinc-799546eebbc22ca42d5afb32505022dddb0b4c99.tar.bz2
tkzinc-799546eebbc22ca42d5afb32505022dddb0b4c99.tar.xz
* (ToArea): Correction d'un PopTransform mal plac� provoquant
des comportements bizarres dans les applis (symptome les objets se d�placent et/ou deviennent invisibles).
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/generic/Group.c b/generic/Group.c
index d2908e7..ad1d706 100644
--- a/generic/Group.c
+++ b/generic/Group.c
@@ -840,12 +840,16 @@ ToArea(Item item,
if (IsEmptyBBox(&inter)) {
continue;
}
- if (current_item->class != ZnGroup) {
- PushTransform(current_item);
- }
if ((current_item->class != ZnGroup) || atomic || ta->recursive) {
- result = current_item->class->ToArea(current_item, ta);
+ if (current_item->class != ZnGroup) {
+ PushTransform(current_item);
+ result = current_item->class->ToArea(current_item, ta);
+ PopTransform(current_item);
+ }
+ else {
+ result = current_item->class->ToArea(current_item, ta);
+ }
outside &= (result == -1);
inside &= (result == 1);
empty = False;
@@ -870,9 +874,6 @@ ToArea(Item item,
ZnDoItem(item->wi->interp, current_item, ZN_NO_PART, ta->tag_uid);
}
}
- if (current_item->class != ZnGroup) {
- PopTransform(current_item);
- }
}
/*