aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
{