summaryrefslogtreecommitdiff
path: root/src/editorui/editormain.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-05-13 10:37:33 -0500
committerColin Noga <Tempus@chronometry.ca>2012-05-13 10:37:33 -0500
commit06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4 (patch)
tree6c165950434f3c688b26aef2d53f31df1a115985 /src/editorui/editormain.py
parente037c2d4256e2975e50d00517526794dff444f0d (diff)
downloadkoopatlas-06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4.tar.gz
koopatlas-06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4.zip
Added Delay offset, made Y scale begin from bottom coords rather than top, some fixes
Diffstat (limited to 'src/editorui/editormain.py')
-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)