From ca30c0f15efc0f2e45daac337adadc8b9c72f3ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Mon, 27 Jun 2005 08:45:22 +0000 Subject: [PATCH] improve id generation git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2152 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/pdfwriter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyx/pdfwriter.py b/pyx/pdfwriter.py index 1c42f325..54e1f7ab 100644 --- a/pyx/pdfwriter.py +++ b/pyx/pdfwriter.py @@ -210,7 +210,7 @@ class PDFcontent(PDFobject): PDFobject.__init__(self, "content") self.canvas = canvas self.pagetrafo = pagetrafo - self.contentlength = PDFcontentlength("%s-%s" % (self.type, self.id)) + self.contentlength = PDFcontentlength((self.type, self.id)) registry.add(self.contentlength) def outputPDF(self, file, writer, registry): @@ -421,7 +421,7 @@ class PDFpattern(PDFobject): self.trafo = trafo self.canvasoutputPDF = canvasoutputPDF - self.contentlength = PDFcontentlength("%s-%s" % (self.type, self.id)) + self.contentlength = PDFcontentlength((self.type, self.id)) registry.add(self.contentlength) # we need to keep track of the resources used by the pattern, hence -- 2.11.4.GIT