PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193829
13f79535-47bb-0310-9956-
ffa450edef68
// scale image if it doesn't fit in the area/page
// Need to be more tested...
double ratio = ((double) width) / ((double) height);
- int areaWidth = area.getAllocationWidth();
+ int areaWidth = area.getAllocationWidth() - startIndent - endIndent;
int areaHeight = area.getMaxHeight();
if ((width > areaWidth) || (height > areaHeight)) {
if (width > height) {