Graphics/PixmapDiagram.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
--- a/Graphics/PixmapDiagram.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Graphics/PixmapDiagram.py	Sun Nov 03 15:58:22 2013 +0100
@@ -234,7 +234,7 @@
         @param factor factor to adjust by (float)
         """
         scrollBar.setValue(int(factor * scrollBar.value()
-                                + ((factor - 1) * scrollBar.pageStep() / 2)))
+                           + ((factor - 1) * scrollBar.pageStep() / 2)))
         
     def __levelForZoom(self, zoom):
         """
@@ -298,7 +298,7 @@
         
         @return current zoom factor in percent (integer)
         """
-        return int(self.pixmapLabel.width() / 
+        return int(self.pixmapLabel.width() /
                    self.pixmapLabel.pixmap().width() * 100.0)
         
     def __printDiagram(self):

eric ide

mercurial