You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by dv...@computer.org on 2005/08/27 18:15:53 UTC
Bug in SVGGeneratorContext ?
Hello,
while browsing the code in svggen/SVGGeneratorContext ( version 215909 )
in line 426.. i found this:
there is a array to hold DecimalFormats, which are initialized to varying
length (decimal digits).
The static initilailzer block first sets decimalFormats[ 0 ] = new
DecFormat( "#", ... ) -- no decimals, ok
Then the loop iteratating, from 0, overwrites slot 0 with new DecFormat(
"#.# , ... ) -- one digit - looks wrong
I think, the intention is to iterate from 1 to 12, not from 0. The current
initialization gives you one more digit
than requested.
greetings
dvholten