keiron      2002/07/23 04:01:59

  Modified:    src/org/apache/fop/fo/flow InstreamForeignObject.java
  Log:
  fix for unknown child that returns null size
  
  Revision  Changes    Path
  1.29      +5 -1      xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java
  
  Index: InstreamForeignObject.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- InstreamForeignObject.java        5 Jul 2002 09:21:47 -0000       1.28
  +++ InstreamForeignObject.java        23 Jul 2002 11:01:59 -0000      1.29
  @@ -161,6 +161,10 @@
   
           Point2D csize = new Point2D.Float(cwidth == -1 ? -1 : cwidth / 1000f, 
cheight == -1 ? -1 : cheight / 1000f);
           Point2D size = child.getDimension(csize);
  +        if(size == null) {
  +            // error
  +            return null;
  +        }
           if(cwidth == -1) {
               cwidth = (int)size.getX() * 1000;
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to