keiron      2002/11/14 07:22:30

  Modified:    src/org/apache/fop/render/pdf PDFXMLHandler.java
  Log:
  make sure it has valid pdf context
  
  Revision  Changes    Path
  1.11      +4 -1      xml-fop/src/org/apache/fop/render/pdf/PDFXMLHandler.java
  
  Index: PDFXMLHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFXMLHandler.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PDFXMLHandler.java        11 Nov 2002 08:50:53 -0000      1.10
  +++ PDFXMLHandler.java        14 Nov 2002 15:22:30 -0000      1.11
  @@ -264,6 +264,9 @@
                                   + 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,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to