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 ph...@apache.org on 2004/07/13 22:59:02 UTC

cvs commit: xml-fop/src/java/org/apache/fop/render/rtf RTFHandler.java

pherweg     2004/07/13 13:59:02

  Modified:    src/java/org/apache/fop/render/rtf RTFHandler.java
  Log:
  bug fixed, which caused runtime-exception on leading whitespaces
  
  Revision  Changes    Path
  1.28      +2 -2      xml-fop/src/java/org/apache/fop/render/rtf/RTFHandler.java
  
  Index: RTFHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/rtf/RTFHandler.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- RTFHandler.java	19 Jun 2004 13:35:33 -0000	1.27
  +++ RTFHandler.java	13 Jul 2004 20:59:02 -0000	1.28
  @@ -1080,7 +1080,7 @@
                       IRtfTextrunContainer.class, true, this);
                       
               RtfTextrun textrun = container.getTextrun();
  -            textrun.addString(new String(data, start, length));
  +            textrun.addString(new String(data, start, length-start));
            } catch (IOException ioe) {
               // FIXME could we throw Exception in all FOInputHandler events?
               log.error("characters: " + ioe.getMessage());
  
  
  

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