>----- Oorspronkelijk bericht -----
>Van: Max Berger [mailto:[EMAIL PROTECTED]

Hi Max,

>Alhtough the testcases pass, this broke MathML. I get the (attached)
>error message on this fo file (which worked fine before updating).
>Please note that I get the same error message no matter if the JEuclid
>extension is installed or not.
<snip />

>java.lang.StringIndexOutOfBoundsException: String index out of range: -356
>       at java.lang.String.<init>(String.java:208)
>       at org.apache.fop.fo.XMLObj.addCharacters(XMLObj.java:217)
>       at

Oops! I fixed the exact same thing in FOText yesterday... If you look closely 
at that line in XMLObj.java, you'll see that the String constructor is not 
passed a length/count, but an endIndex. I'll look into it ASAP, but this is 
probably what's causing the problem here. FOTreeBuilder.characters() now simply 
passes the length, in any case, so the computation (length - start) makes no 
sense.

Cheers

Andreas


Reply via email to