aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/itext/Makefile2
-rw-r--r--devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java15
2 files changed, 16 insertions, 1 deletions
diff --git a/devel/itext/Makefile b/devel/itext/Makefile
index 4110a113cbce..4c1336c17edd 100644
--- a/devel/itext/Makefile
+++ b/devel/itext/Makefile
@@ -8,7 +8,7 @@
PORTNAME= itext
PORTVERSION= 4.2.0
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_LOCAL}
diff --git a/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java b/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java
new file mode 100644
index 000000000000..b9d3044f4773
--- /dev/null
+++ b/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java
@@ -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.