Changeset 8026


Ignore:
Timestamp:
05/23/12 21:51:35 (12 months ago)
Author:
cristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/branches/ImageMagick-6/coders/caption.c

    r8021 r8026  
    178178        width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 
    179179        height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 
    180         if ((width > image->columns) || (height > image->rows)) 
     180        if ((width > image->columns) && (height > image->rows)) 
    181181          break; 
    182         draw_info->pointsize*=2.0; 
     182        draw_info->pointsize++; 
    183183      } 
    184       draw_info->pointsize/=2.0; 
    185184      /* 
    186185        Scale text down to fit bounding box. 
     
    199198        width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 
    200199        height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 
    201         if ((width > image->columns) || (height > image->rows)) 
     200        if ((width <= image->columns) && (height <= image->rows)) 
    202201          break; 
    203         draw_info->pointsize++; 
     202        draw_info->pointsize--; 
    204203      } 
    205       draw_info->pointsize--; 
    206204    } 
    207205  i=FormatMagickCaption(image,draw_info,MagickTrue,&metrics,&caption); 
Note: See TracChangeset for help on using the changeset viewer.