]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla 50986: Fixed an issue where invalid PDF page content was generated due to...
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 3 Apr 2011 09:40:27 +0000 (09:40 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 3 Apr 2011 09:40:27 +0000 (09:40 +0000)
Thanks to Martin Koegler.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088231 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/PDFContentGenerator.java

index 7cc9b7003bd3da55aff4137e05a16c47757b2717..7a6e4e3d20c0e0f8792904a036e955682bc2ae5d 100644 (file)
@@ -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();
         }
     }