From: Andreas L. Delmelle Date: Sun, 3 Apr 2011 09:40:27 +0000 (+0000) Subject: Bugzilla 50986: Fixed an issue where invalid PDF page content was generated due to... X-Git-Tag: fop-1_1rc1old~249 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2cab35675db358ba46c1845f810b50ec1942812b;p=xmlgraphics-fop.git Bugzilla 50986: Fixed an issue where invalid PDF page content was generated due to incorrect ET/EMC sequences. Thanks to Martin Koegler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088231 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java index 7cc9b7003..7a6e4e3d2 100644 --- a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java +++ b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java @@ -270,10 +270,10 @@ public class PDFContentGenerator { /** Indicates the end of a text object. */ protected void endTextObject() { if (textutil.isInTextObject()) { + textutil.endTextObject(); if (this.inMarkedContentSequence) { endMarkedContentSequence(); } - textutil.endTextObject(); } }