You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/06/10 10:51:37 UTC

cvs commit: xml-fop/src/org/apache/fop/mif MIFElement.java

keiron      2002/06/10 01:51:37

  Modified:    src/org/apache/fop/mif MIFElement.java
  Log:
  prevent starting until value set
  
  Revision  Changes    Path
  1.2       +4 -2      xml-fop/src/org/apache/fop/mif/MIFElement.java
  
  Index: MIFElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/mif/MIFElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MIFElement.java	5 Jun 2002 14:52:27 -0000	1.1
  +++ MIFElement.java	10 Jun 2002 08:51:37 -0000	1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MIFElement.java,v 1.1 2002/06/05 14:52:27 keiron Exp $
  + * $Id: MIFElement.java,v 1.2 2002/06/10 08:51:37 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.
  @@ -18,7 +18,7 @@
    */
   public class MIFElement {
       protected String name;
  -    protected String valueStr;
  +    protected String valueStr = null;
       protected ArrayList valueElements = null;
   
       protected boolean started = false;
  @@ -51,6 +51,8 @@
        */
       public boolean output(OutputStream os, int indent) throws IOException {
           if(finished) return true;
  +        if(valueElements == null && valueStr == null) return false;
  +
           String indentStr = "";
           for(int c = 0; c < indent; c++) indentStr += " ";
           if(!started) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org