]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Thu, 20 Oct 2011 05:44:17 +0000 (05:44 +0000)
committeranthony <anthony@git.imagemagick.org>
Thu, 20 Oct 2011 05:44:17 +0000 (05:44 +0000)
coders/ttf.c

index a3b5ba6f428223386bd333c8a5a27ee04a96ae20..8729bb80f90b4deb98f4bc064ac4e2861ecb3abb 100644 (file)
@@ -290,11 +290,11 @@ static Image *ReadTTFImage(const ImageInfo *image_info,ExceptionInfo *exception)
     (void) FormatLocaleString(buffer,MaxTextExtent," text 50,%.20g '%s'\n",
          (double) y, Phrase);
     ConcatenateString(&draw_info->primitive,buffer);
-    if (i <= 8)
+    if (i < 8)
       i++;
-    else if (i <= 12)
+    else if (i < 12)
       i+=2;
-    else if (i <= 24)
+    else if (i < 24)
       i+=6;
     else
       i+=12;