aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-01-16 21:06:42 +0000
committerJeremias Maerki <jeremias@apache.org>2007-01-16 21:06:42 +0000
commit07adcf603f64294b144cdf2988be0231a6d6fb84 (patch)
tree819696a02da50cea2054b1e3e94dda8b2d98a987 /src
parent0ab4336cd56eb46e6fa1a891233ee69642e4ae2e (diff)
downloadxmlgraphics-fop-07adcf603f64294b144cdf2988be0231a6d6fb84.tar.gz
xmlgraphics-fop-07adcf603f64294b144cdf2988be0231a6d6fb84.zip
Bugfix: Seeking to the end of the file is legal, only reading from this position isn't. Fixes running TTFReader with K3.ttf.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@496860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fonts/truetype/FontFileReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fonts/truetype/FontFileReader.java b/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
index 42049eaac..18ac7ad0f 100644
--- a/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
+++ b/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
@@ -82,7 +82,7 @@ public class FontFileReader {
* @throws IOException In case of an I/O problem
*/
public void seekSet(long offset) throws IOException {
- if (offset >= fsize || offset < 0) {
+ if (offset > fsize || offset < 0) {
throw new java.io.EOFException("Reached EOF, file size=" + fsize
+ " offset=" + offset);
}