Browse Source

gets the available space better, should prevent some infinite loops

until the layout is done properly
PR: bug id 3475
Submitted by:	Paul Austin <p_d_austin@yahoo.com>


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194460 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_20_3
Keiron Liddle 23 years ago
parent
commit
94497c3885
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/org/apache/fop/fo/flow/ExternalGraphic.java

+ 2
- 1
src/org/apache/fop/fo/flow/ExternalGraphic.java View File

@@ -143,7 +143,8 @@ public class ExternalGraphic extends FObj {
double ratio = ((double)width) / ((double)height);
int areaWidth = area.getAllocationWidth() - startIndent
- endIndent;
int pageHeight = area.getPage().getHeight();
int pageHeight = area.getPage().getBody().getMaxHeight()
- spaceBefore;
if (height > pageHeight) {
height = pageHeight;
width = (int)(ratio * ((double)height));

Loading…
Cancel
Save