From 6ef17c455eec34e425887cd6946379dd22f1d567 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 13 Oct 2003 08:07:37 +0000 Subject: Optimized out the modification of an image attribute with the same image value. The previous behaviour led to a core dump (pb with reference couting). --- generic/Item.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'generic') diff --git a/generic/Item.c b/generic/Item.c index 27c7347..e971919 100644 --- a/generic/Item.c +++ b/generic/Item.c @@ -352,17 +352,13 @@ ZnConfigureAttributes(ZnWInfo *wi, { ZnImage image = ZnUnspecifiedImage; ZnBool is_bmap = True; -#if 0 char *name = ""; if (*((ZnImage *) valp) != ZnUnspecifiedImage) { name = ZnNameOfImage(*((ZnImage *) valp)); } -#endif str = Tcl_GetString(args[i+1]); -#if 0 if (strcmp(name, str) != 0) { -#endif if (strlen(str) != 0) { if (desc->type == ZN_CONFIG_IMAGE) { image = ZnGetImage(wi, str, ZnUpdateItemImage, record); @@ -390,9 +386,7 @@ ZnConfigureAttributes(ZnWInfo *wi, } *((ZnImage *) valp) = image; *flags |= desc->flags; -#if 0 } -#endif break; } case ZN_CONFIG_BITMAP_LIST: -- cgit v1.1