diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-05-22 10:38:49 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-05-22 10:38:49 +0000 |
commit | a69a5a48f384ff8b6e83343e96cda91191f53ee3 (patch) | |
tree | 745a17ea47899cdd4201a073544d176fcf680fd9 /src/java/org | |
parent | 4242a406d9e1bf323f3add1abbc6f0f7664a6ff1 (diff) | |
download | xmlgraphics-fop-a69a5a48f384ff8b6e83343e96cda91191f53ee3.tar.gz xmlgraphics-fop-a69a5a48f384ff8b6e83343e96cda91191f53ee3.zip |
Bugzilla #47232: for the last character of a Type1 font, always a width of 0 was returned. Patch submitted by Maxim Wirt.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@777459 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/fonts/SingleByteFont.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fonts/SingleByteFont.java b/src/java/org/apache/fop/fonts/SingleByteFont.java index 8739b42a4..fb4725bd4 100644 --- a/src/java/org/apache/fop/fonts/SingleByteFont.java +++ b/src/java/org/apache/fop/fonts/SingleByteFont.java @@ -94,7 +94,7 @@ public class SingleByteFont extends CustomFont { /** {@inheritDoc} */ public int[] getWidths() { int[] arr = new int[width.length]; - System.arraycopy(width, 0, arr, 0, width.length - 1); + System.arraycopy(width, 0, arr, 0, width.length); return arr; } |