# Use x or y scaling factor, whichever fits on the DC
actualScale = min(scaleX, scaleY)
- # Calculate the position on the DC for centring the graphic
+ # Calculate the position on the DC for centering the graphic
posX = (w - (self.canvas.getWidth() * actualScale)) / 2.0
posY = (h - (self.canvas.getHeight() * actualScale)) / 2.0
#-------------------------------------------
self.canvas.DoDrawing(dc, True)
- dc.DrawText("Page: %d" % page, marginX/2, maxY-marginY)
+ dc.DrawText("Page: %d" % page, (marginX/2, maxY-marginY))
return True