]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Keiron Liddle's patch to make special characters work across page
authorSteve Coffman <gears@apache.org>
Mon, 12 Jun 2000 14:47:44 +0000 (14:47 +0000)
committerSteve Coffman <gears@apache.org>
Mon, 12 Jun 2000 14:47:44 +0000 (14:47 +0000)
breaks.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193398 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layout/LineArea.java

index a44ece460b6152614da2ded4cb003894597d8f24..1a34faf822c30d98ec2d097b2b031c1683c6bd26 100644 (file)
@@ -145,12 +145,16 @@ public class LineArea extends Area {
        renderer.renderLineArea(this);
     }
 
-    public int addText(char data[], int start, int end, LinkSet ls) {
+    public int addText(char odata[], int start, int end, LinkSet ls) {
        boolean overrun = false;
 
        wordStart = start;
        wordLength = 0;
        wordWidth = 0;
+       char[] data = new char[odata.length];
+       for(int count=0;count <odata.length; count++) {
+               data[count] = odata[count];
+       }
 
        /* iterate over each character */
        for (int i = start; i < end; i++) {