gmazza      2003/11/15 15:45:34

  Modified:    src/java/org/apache/fop/render/rtf/rtflib/rtfdoc
                        RtfColorTable.java
  Log:
  Peter Herweg's patch applied:
  http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=9128
  
  Revision  Changes    Path
  1.2       +6 -4      
xml-fop/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java
  
  Index: RtfColorTable.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RtfColorTable.java        4 Nov 2003 23:59:11 -0000       1.1
  +++ RtfColorTable.java        15 Nov 2003 23:45:34 -0000      1.2
  @@ -210,7 +210,9 @@
           }
   
           header.writeGroupMark (true);
  -        header.writeControlWord ("colortbl;");
  +        //Don't use writeControlWord, because it appends a blank,
  +        //which may confuse Wordpad.
  +        header.write ("\\colortbl;");
   
           int len = colorTable.size ();
   
  @@ -236,7 +238,7 @@
        * @param i Identifier of color
        */
       private void addColor (Integer i) {
  -        colorIndex.put (i, new Integer (colorTable.size () + 1));
  +        colorIndex.put (i, new Integer (colorTable.size ()));
           colorTable.addElement (i);
       }
   
  @@ -271,4 +273,4 @@
   
           return retVal < 0 ? retVal + 256 : retVal;
       }
  -}
  \ No newline at end of file
  +}
  
  
  

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

Reply via email to