summaryrefslogtreecommitdiff
path: root/src/editorui
diff options
context:
space:
mode:
Diffstat (limited to 'src/editorui')
-rw-r--r--src/editorui/editormain.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py
index 263c547..3d2f17d 100644
--- a/src/editorui/editormain.py
+++ b/src/editorui/editormain.py
@@ -353,7 +353,11 @@ class KPMapScene(QtGui.QGraphicsScene):
posRect.setWidth(posRect.width()*modifier/100.0)
elif Type == "Y Scale":
- posRect.setHeight(posRect.height()*modifier/100.0)
+ h = posRect.height()
+ posRect.setHeight(h*modifier/100.0)
+
+ new = h - posRect.height()
+ posRect.adjust(0, new, 0, new)
elif Type == "Opacity":
painter.setOpacity(modifier/100.0)