--- 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):