clone_image->ping=image->ping;
clone_image->debug=IsEventLogging();
clone_image->semaphore=AcquireSemaphoreInfo();
- if ((columns == 0) && (rows == 0))
+ if ((columns == 0) || (rows == 0))
{
if (image->montage != (char *) NULL)
(void) CloneString(&clone_image->montage,image->montage);
clone_image->columns=columns;
clone_image->rows=rows;
clone_image->cache=ClonePixelCache(image->cache);
-
return(clone_image);
}
\f
}
submenu_info=selection_info[i];
submenu_info.active=MagickTrue;
- toggle_info.y=
- submenu_info.y+(submenu_info.height >> 1)-(toggle_info.height >> 1);
+ toggle_info.y=submenu_info.y+(submenu_info.height >> 1)-
+ (toggle_info.height >> 1);
id=i;
(void) XCheckWindowEvent(display,windows->widget.id,LeaveWindowMask,
event);
selection_info[i].bevel_width--;
selection_info[i].height=(unsigned int) ((3*height) >> 1);
selection_info[i].x=(QuantumMargin >> 1)+4;
- selection_info[i].width=(unsigned int)
- (windows->command.width-(selection_info[i].x << 1));
+ selection_info[i].width=(unsigned int) (windows->command.width-
+ (selection_info[i].x << 1));
selection_info[i].y=y;
y+=selection_info[i].height+(selection_info[i].bevel_width << 1)+6;
}
XGetWidgetInfo((char *) NULL,&toggle_info);
toggle_info.bevel_width--;
- toggle_info.width=(unsigned int)
- (((5*height) >> 3)-(toggle_info.bevel_width << 1));
+ toggle_info.width=(unsigned int) (((5*height) >> 3)-
+ (toggle_info.bevel_width << 1));
toggle_info.height=toggle_info.width;
toggle_info.x=selection_info[0].x+selection_info[0].width-
toggle_info.width-(QuantumMargin >> 1);
if (i >= (int) windows->command.data)
continue;
toggle_info.raised=MagickFalse;
- toggle_info.y=selection_info[i].y+
- (selection_info[i].height >> 1)-(toggle_info.height >> 1);
+ toggle_info.y=selection_info[i].y+(selection_info[i].height >> 1)-
+ (toggle_info.height >> 1);
XDrawTriangleEast(display,&windows->command,&toggle_info);
}
XHighlightWidget(display,&windows->command,BorderOffset,BorderOffset);
return(MagickTrue);
(void) SetImageInfoProgressMonitor(image_info,(MagickProgressMonitor) NULL,
(void *) NULL);
- status=0;
-
+ status=MagickTrue;
#if 0
(void) FormatLocaleFile(stderr, "mogrify start %s %d (%s)\n",argv[0],argc,
post?"post":"pre");
#endif
-
/*
Pre-process multi-image sequence operators
*/
(void) FormatLocaleFile(stderr,"mogrify end %ld of %ld\n",(long)
GetImageIndexInList(*images),(long)GetImageListLength(*images));
#endif
-
/*
Post-process, multi-image sequence operators
*/