renderbase.py: attempt to fix problems with copy in renderScaledDrawing
authorrgbecker
Fri, 13 Jul 2007 12:20:01 +0000
changeset 2827 ec03c767079c
parent 2826 6901812d979e
child 2829 4019b82d26b4
renderbase.py: attempt to fix problems with copy in renderScaledDrawing
reportlab/graphics/renderbase.py
--- a/reportlab/graphics/renderbase.py	Wed Jul 11 16:27:18 2007 +0000
+++ b/reportlab/graphics/renderbase.py	Fri Jul 13 12:20:01 2007 +0000
@@ -168,9 +168,9 @@
 def renderScaledDrawing(d):
     renderScale = d.renderScale
     if renderScale!=1.0:
-        d = d.copy()
-        d.width *= renderScale
-        d.height *= renderScale
+        o = d
+        d = d.__class__(o.width*renderScale,o.height*renderScale)
+        d.__dict__ = o.__dict__.copy()
         d.scale(renderScale,renderScale)
         d.renderScale = 1.0
     return d