if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
p=(const char *) NULL;
- if (artifact == (const char *) NULL)
- {
- ResetSplayTreeIterator((SplayTreeInfo *) image->artifacts);
- p=(const char *) GetNextValueInSplayTree((SplayTreeInfo *)
- image->artifacts);
- return(p);
- }
if (image->artifacts != (void *) NULL)
{
+ if (artifact == (const char *) NULL)
+ return((const char *) GetRootValueFromSplayTree((SplayTreeInfo *)
+ image->artifacts));
p=(const char *) GetValueFromSplayTree((SplayTreeInfo *) image->artifacts,
artifact);
if (p != (const char *) NULL)
if (image->properties != (void *) NULL)
{
if (property == (const char *) NULL)
- {
- ResetSplayTreeIterator((SplayTreeInfo *) image->properties);
- p=(const char *) GetNextValueInSplayTree((SplayTreeInfo *)
- image->properties);
- return(p);
- }
- p=(const char *) GetValueFromSplayTree((SplayTreeInfo *)
+ return((const char *) GetRootValueFromSplayTree((SplayTreeInfo *)
+ image->properties));
+ p=(const char *) GetValueFromSplayTree((SplayTreeInfo *)
image->properties,property);
- if (p != (const char *) NULL)
- return(p);
+ if (p != (const char *) NULL)
+ return(p);
}
if ((property == (const char *) NULL) ||
(strchr(property,':') == (char *) NULL))