aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Syrjä <mikko@syrja.org>2019-06-06 23:03:33 +0300
committerMikko Syrjä <mikko@syrja.org>2019-06-06 23:03:33 +0300
commit7dc8bdd036ede5b00df649706523895d98a6cf73 (patch)
tree29278fae29c63e2d62f95e852573121614cd3dbf
parent4ae7dad07ea2fa6553faf824bca9dd4ddda48b11 (diff)
downloadsymedit-7dc8bdd036ede5b00df649706523895d98a6cf73.tar.gz
symedit-7dc8bdd036ede5b00df649706523895d98a6cf73.zip
Text positioning does not need move any more.
-rw-r--r--Editor.qml12
1 files 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
{