From 7dc8bdd036ede5b00df649706523895d98a6cf73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikko=20Syrj=C3=A4?= Date: Thu, 6 Jun 2019 23:03:33 +0300 Subject: Text positioning does not need move any more. --- Editor.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Editor.qml b/Editor.qml index 1666e60..0d0406b 100644 --- a/Editor.qml +++ b/Editor.qml @@ -94,7 +94,12 @@ Rectangle } else if ( !preview ) { - if ( startx != endx || starty != endy ) + if ( tool > 50 && tool < 60 ) // text + { + if ( manager.addTextItem(Operation.Text, Qt.point(endx, endy), textvalue, colorindex, alignment) ) + symbol = manager.getSymbol(true) + } + else if ( startx != endx || starty != endy ) { if ( tool === Editor.Tool.Line ) { @@ -150,11 +155,6 @@ Rectangle //## } } - else if ( tool > 50 && tool < 60 ) // text - { - if ( manager.addTextItem(Operation.Text, Qt.point(endx, endy), textvalue, colorindex, alignment) ) - symbol = manager.getSymbol(true) - } } else // activate last { -- cgit v1.2.3