aboutsummaryrefslogtreecommitdiff
path: root/generic/tkZinc.c
diff options
context:
space:
mode:
authorlecoanet2003-01-15 12:28:44 +0000
committerlecoanet2003-01-15 12:28:44 +0000
commitd54b24f46460021e39468261ccf80e74a25a849f (patch)
tree7b520b9f1cdb70cbdbf641a477efa8c0d948bf35 /generic/tkZinc.c
parent5c7751decc0c4cbad366f7698fc72b5a4a32eb25 (diff)
downloadtkzinc-d54b24f46460021e39468261ccf80e74a25a849f.zip
tkzinc-d54b24f46460021e39468261ccf80e74a25a849f.tar.gz
tkzinc-d54b24f46460021e39468261ccf80e74a25a849f.tar.bz2
tkzinc-d54b24f46460021e39468261ccf80e74a25a849f.tar.xz
* (WidgetObjCmd): Rej�te toute tentative de cloner le top groupe
Diffstat (limited to 'generic/tkZinc.c')
-rw-r--r--generic/tkZinc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkZinc.c b/generic/tkZinc.c
index 0a0dd15..0a1d027 100644
--- a/generic/tkZinc.c
+++ b/generic/tkZinc.c
@@ -2513,7 +2513,7 @@ ZnParseCoordList(WidgetInfo *wi,
old_style = (result == ZN_OK);
if (old_style) {
- if ((num_elems%2) != 0) {
+ if ((num_elems%2) == 0) {
*num_pts = num_elems/2;
ZnListAssertSize(wi->work_pts, *num_pts);
*pts = p = (ZnPoint *) ZnListArray(wi->work_pts);
@@ -3513,7 +3513,8 @@ WidgetObjCmd(ClientData client_data, /* Information about the widget. */
goto error;
}
result = ZnItemWithTagOrId(wi, args[2], &item, &search_var);
- if ((result == ZN_ERROR) || (item == ZN_NO_ITEM)) {
+ if ((result == ZN_ERROR) ||
+ (item == ZN_NO_ITEM) || (item == wi->top_group)) {
goto error;
}
argc -= 3;