From: eschaeffer Date: Mon, 20 Nov 2000 16:54:49 +0000 (+0000) Subject: error in previous commit (forget startIndent and endIndent). Image scaling should... X-Git-Tag: pre-columns~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=883238e9248d6ea8f5b7fb9b706c857e172280b8;p=xmlgraphics-fop.git error in previous commit (forget startIndent and endIndent). Image scaling should know work in lists and tables. 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 --- diff --git a/src/org/apache/fop/fo/flow/ExternalGraphic.java b/src/org/apache/fop/fo/flow/ExternalGraphic.java index a6d2bcee9..297908a4b 100644 --- a/src/org/apache/fop/fo/flow/ExternalGraphic.java +++ b/src/org/apache/fop/fo/flow/ExternalGraphic.java @@ -184,7 +184,7 @@ public class ExternalGraphic extends FObj { // 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) {