diff options
author | ale <ale@FreeBSD.org> | 2012-01-27 18:45:37 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2012-01-27 18:45:37 +0800 |
commit | c59f8038b5a55f8a706c91a2b889f8a75ad22b32 (patch) | |
tree | 2b14f331ad24aeb2e61849d0857c1c0f21191f9e /devel | |
parent | f1fc79fd023a2a22ef13e105887e53f8caddff27 (diff) | |
download | freebsd-ports-gnome-c59f8038b5a55f8a706c91a2b889f8a75ad22b32.tar.gz freebsd-ports-gnome-c59f8038b5a55f8a706c91a2b889f8a75ad22b32.tar.zst freebsd-ports-gnome-c59f8038b5a55f8a706c91a2b889f8a75ad22b32.zip |
Fix a bug in cross-references parsing/setting.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/itext/Makefile | 2 | ||||
-rw-r--r-- | devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/itext/Makefile b/devel/itext/Makefile index 992dd2481245..4110a113cbce 100644 --- a/devel/itext/Makefile +++ b/devel/itext/Makefile @@ -8,7 +8,7 @@ PORTNAME= itext PORTVERSION= 4.2.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_LOCAL} diff --git a/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java b/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java new file mode 100644 index 000000000000..270aa60a4876 --- /dev/null +++ b/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java @@ -0,0 +1,11 @@ +--- core/com/lowagie/text/pdf/PdfReader.java.orig 2012-01-27 11:27:08.000000000 +0100 ++++ core/com/lowagie/text/pdf/PdfReader.java 2012-01-27 11:27:41.000000000 +0100 +@@ -1464,7 +1464,7 @@ + } + } + thisStream *= 2; +- if (thisStream < xref.length) ++ if (thisStream < xref.length && xref[thisStream] == 0 && xref[thisStream + 1] == 0) + xref[thisStream] = -1; + + if (prev == -1) |