diff options
author | Peter Herweg <pherweg@apache.org> | 2004-07-13 20:59:02 +0000 |
---|---|---|
committer | Peter Herweg <pherweg@apache.org> | 2004-07-13 20:59:02 +0000 |
commit | 1d2d04c5f06a89fcd333543547a9d4ecc3929e35 (patch) | |
tree | df1a4cc2db6898d0846b0b57e64448a84b8f5398 /src/java/org/apache | |
parent | a1700da5d8f64b324c37df59a23abdbbd34df11a (diff) | |
download | xmlgraphics-fop-1d2d04c5f06a89fcd333543547a9d4ecc3929e35.tar.gz xmlgraphics-fop-1d2d04c5f06a89fcd333543547a9d4ecc3929e35.zip |
bug fixed, which caused runtime-exception on leading whitespaces
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/render/rtf/RTFHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/rtf/RTFHandler.java b/src/java/org/apache/fop/render/rtf/RTFHandler.java index 21587b77c..bf23e5c71 100644 --- a/src/java/org/apache/fop/render/rtf/RTFHandler.java +++ b/src/java/org/apache/fop/render/rtf/RTFHandler.java @@ -1080,7 +1080,7 @@ public class RTFHandler extends FOInputHandler { 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()); |