Changeset 8027
- Timestamp:
- 05/23/12 21:52:18 (12 months ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/coders/caption.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/caption.c
r8020 r8027 180 180 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 181 181 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)) 183 183 break; 184 draw_info->pointsize *=2.0;184 draw_info->pointsize++; 185 185 } 186 draw_info->pointsize/=2.0;187 186 /* 188 187 Scale text down to fit bounding box. … … 202 201 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 203 202 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)) 205 204 break; 206 draw_info->pointsize ++;205 draw_info->pointsize--; 207 206 } 208 draw_info->pointsize--;209 207 } 210 208 i=FormatMagickCaption(image,draw_info,MagickTrue,&metrics,&caption,exception);
Note: See TracChangeset
for help on using the changeset viewer.
