]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
make sure it has valid pdf context
authorKeiron Liddle <keiron@apache.org>
Thu, 14 Nov 2002 15:22:30 +0000 (15:22 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 14 Nov 2002 15:22:30 +0000 (15:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195537 13f79535-47bb-0310-9956-ffa450edef68

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

index ff0813c46d4f4da3b3089488926fcd5dfe7c75fd..6857311d6625ec4ba07ad605afc8ecacb21d336d 100644 (file)
@@ -264,6 +264,9 @@ public class PDFXMLHandler implements XMLHandler {
                                 + PDFNumber.doubleOut(vals[5]) + " cm\n");
             }
 
+            if (pdfInfo.pdfContext == null) {
+                pdfInfo.pdfContext = pdfInfo.pdfPage;
+            }
             PDFGraphics2D graphics = new PDFGraphics2D(true, pdfInfo.fi, pdfInfo.pdfDoc,
                                      pdfInfo.pdfContext, pdfInfo.pdfPage.referencePDF(),
                                      pdfInfo.currentFontName,