reportlab/graphics/renderPM.py
changeset 2574 d81949596070
parent 2553 a880f43d10bd
child 2575 0cba68b93555
--- a/reportlab/graphics/renderPM.py	Wed Mar 15 12:22:10 2006 +0000
+++ b/reportlab/graphics/renderPM.py	Wed Mar 15 16:47:27 2006 +0000
@@ -416,9 +416,9 @@
         if self.fillColor is not None:
             textLen = stringWidth(text, self.fontName,self.fontSize)
             if text_anchor=='end':
-                x = x-textLen
+                x -= textLen
             elif text_anchor=='middle':
-                x = x - textLen/2
+                x -= textLen/2.
             self.drawString(x,y,text)
 
     def drawRightString(self, text, x, y):