aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/preview_win.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/preview_win.py b/src/gui/preview_win.py
index 3db420c..27e0a59 100644
--- a/src/gui/preview_win.py
+++ b/src/gui/preview_win.py
@@ -25,8 +25,8 @@ class PreviewWindow(QtWidgets.QLabel):
transformMode=QtCore.Qt.SmoothTransformation)
# start painting the label from left upper corner
- point.setX((size.width() - scaledPix.width())/2)
- point.setY((size.height() - scaledPix.height())/2)
+ point.setX(int((size.width() - scaledPix.width())/2))
+ point.setY(int((size.height() - scaledPix.height())/2))
painter.drawPixmap(point, scaledPix)
def changePixmap(self, img):