Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8cb4e7

Browse files
committed
Merged revisions 7209,7211 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r7209 | jdh2358 | 2009-06-10 13:39:22 -0400 (Wed, 10 Jun 2009) | 1 line remove gw32c from setupext ........ r7211 | mdboom | 2009-06-12 09:39:59 -0400 (Fri, 12 Jun 2009) | 2 lines Fix PDFs for use with ReportLab's pedantic parser ........ svn path=/trunk/matplotlib/; revision=7212
1 parent cd5a2d7 commit b8cb4e7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,10 @@ def writeXref(self):
12151215
'No offset for object %d (%s)' % (i, name)
12161216
borken = True
12171217
else:
1218-
self.write("%010d %05d n \n" % (offset, generation))
1218+
if name == 'the zero object':
1219+
self.write("%010d %05d f \n" % (offset, generation))
1220+
else:
1221+
self.write("%010d %05d n \n" % (offset, generation))
12191222
i += 1
12201223
if borken:
12211224
raise AssertionError, 'Indirect object does not exist'

0 commit comments

Comments
 (0)