]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
error in previous commit (forget startIndent and endIndent). Image scaling should...
authoreschaeffer <eschaeffer@unknown>
Mon, 20 Nov 2000 16:54:49 +0000 (16:54 +0000)
committereschaeffer <eschaeffer@unknown>
Mon, 20 Nov 2000 16:54:49 +0000 (16:54 +0000)
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

src/org/apache/fop/fo/flow/ExternalGraphic.java

index a6d2bcee90d92f61669adbd5094375de53950efb..297908a4b02985761e747373c030f46bd30d59b0 100644 (file)
@@ -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) {