Fix a bug in PRTokeniser.
This commit is contained in:
parent
ba040852c7
commit
0d8eb16ea3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300437
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= itext
|
||||
PORTVERSION= 4.2.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
|
@ -0,0 +1,15 @@
|
||||
--- core/com/lowagie/text/pdf/PRTokeniser.java.orig 2012-07-03 16:02:24.000000000 +0200
|
||||
+++ core/com/lowagie/text/pdf/PRTokeniser.java 2012-07-03 16:03:30.000000000 +0200
|
||||
@@ -281,6 +281,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
+ if (level > 0) {
|
||||
+ file.seek(ptr);
|
||||
+ type = TK_NUMBER;
|
||||
+ stringValue = n1;
|
||||
+ return;
|
||||
+ }
|
||||
// if we hit here, the file is either corrupt (stream ended unexpectedly),
|
||||
// or the last token ended exactly at the end of a stream. This last
|
||||
// case can occur inside an Object Stream.
|
Loading…
Reference in New Issue
Block a user