summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/text-tool.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-09-10 12:49:31 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-09-10 12:49:31 +0000
commitb344517f8a01708652b12ab2a881c90eaf191699 (patch)
treeccbc974b3a1a488abfe6cbcf996e48047caad34b /src/ui/tools/text-tool.cpp
parentfix a subselection issue (diff)
downloadinkscape-b344517f8a01708652b12ab2a881c90eaf191699.tar.gz
inkscape-b344517f8a01708652b12ab2a881c90eaf191699.zip
improve text selection
Diffstat (limited to '')
-rw-r--r--src/ui/tools/text-tool.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp
index 6b35990aa..ef21ffea7 100644
--- a/src/ui/tools/text-tool.cpp
+++ b/src/ui/tools/text-tool.cpp
@@ -494,13 +494,6 @@ bool TextTool::root_handler(GdkEvent* event) {
}
break;
case GDK_MOTION_NOTIFY: {
- if (this->over_text) {
- this->over_text = false;
- // update cursor and statusbar: we are not over a text object now
- this->cursor_shape = cursor_text_xpm;
- this->sp_event_context_update_cursor();
- desktop->event_context->defaultMessageContext()->clear();
- }
if (this->creating && (event->motion.state & GDK_BUTTON1_MASK) && !this->space_panning) {
if ( this->within_tolerance
&& ( abs( (gint) event->motion.x - this->xp ) < this->tolerance )
@@ -599,6 +592,12 @@ bool TextTool::root_handler(GdkEvent* event) {
_("<b>Click</b> to edit the flowed text, <b>drag</b> to select part of the text."));
}
this->over_text = true;
+ } else {
+ this->over_text = false;
+ // update cursor and statusbar: we are not over a text object now
+ this->cursor_shape = cursor_text_xpm;
+ this->sp_event_context_update_cursor();
+ desktop->event_context->defaultMessageContext()->clear();
}
return TRUE;
} break;