From: Luis Bernardo Date: Fri, 13 Dec 2013 20:23:54 +0000 (+0000) Subject: FOP-2263: PDFDocumentGraphics2D.closePage() should not nullify currentStream; change... X-Git-Tag: fop-2_0~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a1c043a42a08f75f8fc3a311bed31460af16722;p=xmlgraphics-fop.git FOP-2263: PDFDocumentGraphics2D.closePage() should not nullify currentStream; change suggested by Max Gilead git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1550834 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java b/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java index e91e2231c..cb2b58c40 100644 --- a/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java +++ b/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java @@ -278,7 +278,6 @@ public class PDFDocumentGraphics2D extends PDFGraphics2D { PDFStream pdfStream = this.pdfDoc.getFactory().makeStream( PDFFilterList.CONTENT_FILTER, false); pdfStream.add(getString()); - currentStream = null; this.pdfDoc.registerObject(pdfStream); pdfContext.getCurrentPage().setContents(pdfStream); PDFAnnotList annots = pdfContext.getCurrentPage().getAnnotations();