Revision: 7211
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7211&view=rev
Author:   mdboom
Date:     2009-06-12 13:39:59 +0000 (Fri, 12 Jun 2009)

Log Message:
-----------
Fix PDFs for use with ReportLab's pedantic parser

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/backends/backend_pdf.py

Modified: branches/v0_98_5_maint/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/backends/backend_pdf.py       
2009-06-10 21:28:07 UTC (rev 7210)
+++ branches/v0_98_5_maint/lib/matplotlib/backends/backend_pdf.py       
2009-06-12 13:39:59 UTC (rev 7211)
@@ -1177,7 +1177,10 @@
                     'No offset for object %d (%s)' % (i, name)
                 borken = True
             else:
-                self.write("%010d %05d n \n" % (offset, generation))
+                if name == 'the zero object':
+                    self.write("%010d %05d f \n" % (offset, generation))
+                else:
+                    self.write("%010d %05d n \n" % (offset, generation))
             i += 1
         if borken:
             raise AssertionError, 'Indirect object does not exist'


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to