Changeset 8027


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

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/caption.c

    r8020 r8027  
    180180        width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 
    181181        height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 
    182         if ((width > image->columns) || (height > image->rows)) 
     182        if ((width > image->columns) && (height > image->rows)) 
    183183          break; 
    184         draw_info->pointsize*=2.0; 
     184        draw_info->pointsize++; 
    185185      } 
    186       draw_info->pointsize/=2.0; 
    187186      /* 
    188187        Scale text down to fit bounding box. 
     
    202201        width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 
    203202        height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 
    204         if ((width > image->columns) || (height > image->rows)) 
     203        if ((width <= image->columns) && (height <= image->rows)) 
    205204          break; 
    206         draw_info->pointsize++; 
     205        draw_info->pointsize--; 
    207206      } 
    208       draw_info->pointsize--; 
    209207    } 
    210208  i=FormatMagickCaption(image,draw_info,MagickTrue,&metrics,&caption,exception); 
Note: See TracChangeset for help on using the changeset viewer.