From 06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Sun, 13 May 2012 10:37:33 -0500 Subject: Added Delay offset, made Y scale begin from bottom coords rather than top, some fixes --- src/editorui/editormain.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/editorui/editormain.py') 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) -- cgit v1.2.3