You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2007/01/16 22:06:43 UTC
svn commit: r496860 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
Author: jeremias
Date: Tue Jan 16 13:06:42 2007
New Revision: 496860
URL: http://svn.apache.org/viewvc?view=rev&rev=496860
Log:
Bugfix: Seeking to the end of the file is legal, only reading from this position isn't. Fixes running TTFReader with K3.ttf.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java?view=diff&rev=496860&r1=496859&r2=496860
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/FontFileReader.java Tue Jan 16 13:06:42 2007
@@ -82,7 +82,7 @@
* @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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org