]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 30 May 2013 23:33:02 +0000 (23:33 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 30 May 2013 23:33:02 +0000 (23:33 +0000)
coders/caption.c

index 3bb5de56d4931391ead2c7945154edeeb04fa8a1..27bf68fca3c94057f5f5faef4109ce62fa4c6e8c 100644 (file)
@@ -253,11 +253,10 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
           else
             high=draw_info->pointsize-1.0;
       }
-      draw_info->pointsize=(low+high)/2.0-1.0;
+      draw_info->pointsize=(low+high)/2.0;
     }
   (void) CloneString(&draw_info->text,caption);
-  i=FormatMagickCaption(image,draw_info,split,&metrics,&caption,
-    exception);
+  i=FormatMagickCaption(image,draw_info,split,&metrics,&caption,exception);
   if (SetImageBackgroundColor(image,exception) == MagickFalse)
     {
       image=DestroyImageList(image);