keiron 01/09/12 02:19:34 Modified: src/org/apache/fop/fo/flow ExternalGraphic.java Log: gets the available space better, should prevent some infinite loops until the layout is done properly PR: bug id 3475 Submitted by: Paul Austin <[EMAIL PROTECTED]> Revision Changes Path 1.13 +3 -2 xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java Index: ExternalGraphic.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- ExternalGraphic.java 2001/08/20 11:19:23 1.12 +++ ExternalGraphic.java 2001/09/12 09:19:34 1.13 @@ -1,5 +1,5 @@ /* - * $Id: ExternalGraphic.java,v 1.12 2001/08/20 11:19:23 keiron Exp $ + * $Id: ExternalGraphic.java,v 1.13 2001/09/12 09:19:34 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -143,7 +143,8 @@ 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)); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]