chrisg      02/02/14 09:40:52

  Modified:    src/org/apache/fop/mif Tag: fop-0_20_2-maintain
                        MIFDocument.java
  Log:
  temporary fix for MIF renderer
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.2   +7 -1      xml-fop/src/org/apache/fop/mif/MIFDocument.java
  
  Index: MIFDocument.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/mif/MIFDocument.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- MIFDocument.java  10 Feb 2002 23:17:49 -0000      1.3.2.1
  +++ MIFDocument.java  14 Feb 2002 17:40:52 -0000      1.3.2.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MIFDocument.java,v 1.3.2.1 2002/02/10 23:17:49 chrisg Exp $
  + * $Id: MIFDocument.java,v 1.3.2.2 2002/02/14 17:40:52 chrisg 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.
  @@ -347,6 +347,12 @@
           }
   
           public TextRect curTextRect() {
  +
  +            //temporary fix for NoSuchElementException
  +            if (textRects.isEmpty()) {
  +                TextRect textRect = new TextRect(1);
  +                this.textRects.addElement(textRect);
  +            }
   
               return (TextRect)textRects.lastElement();
   
  
  
  

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

Reply via email to