diff --git a/src/text-context.cpp b/src/text-context.cpp
index a181f4f6fb22d70f63128da9fe536da50ce68dd3..d59ba6bdf0b464a855420e93d6deac3edcc5fb8b 100644 (file)
--- a/src/text-context.cpp
+++ b/src/text-context.cpp
sp_canvas_item_ungrab(tc->grabbed, GDK_CURRENT_TIME);
tc->grabbed = NULL;
}
-
+
Inkscape::Rubberband::get()->stop();
-
+
if (ec->shape_knot_holder) {
sp_knot_holder_destroy(ec->shape_knot_holder);
ec->shape_knot_holder = NULL;
@@ -413,14 +413,14 @@ sp_text_context_item_handler(SPEventContext *ec, SPItem *item, GdkEvent *event)
if (new_end < tc->text_sel_start) {
if (!layout->isStartOfWord(new_end))
new_end.prevStartOfWord();
- } else
+ } else
if (!layout->isEndOfWord(new_end))
new_end.nextEndOfWord();
} else if (tc->dragging == 3) {
// triple-click dragging: go by line
if (new_end < tc->text_sel_start)
new_end.thisStartOfLine();
- else
+ else
new_end.thisEndOfLine();
}
// update display
return TRUE;
}
break;
- case GDK_MOTION_NOTIFY:
+ case GDK_MOTION_NOTIFY:
if (tc->over_text) {
tc->over_text = 0;
// update cursor and statusbar: we are not over a text object now
}
break;
- case GDK_BUTTON_RELEASE:
+ case GDK_BUTTON_RELEASE:
if (event->button.button == 1) {
if (tc->grabbed) {
if (tc->text) {
if (MOD__CTRL)
cursor_movement_operator = &Inkscape::Text::Layout::iterator::thisStartOfShape;
- else
+ else
cursor_movement_operator = &Inkscape::Text::Layout::iterator::thisStartOfLine;
break;
}
if (tc->text) {
if (MOD__CTRL)
cursor_movement_operator = &Inkscape::Text::Layout::iterator::nextStartOfShape;
- else
+ else
cursor_movement_operator = &Inkscape::Text::Layout::iterator::thisEndOfLine;
break;
}
sp_te_adjust_rotation_screen(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, -10);
} else {
sp_te_adjust_rotation_screen(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, -1);
- }
+ }
} else {
sp_te_adjust_rotation(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, -90);
}
sp_text_context_update_cursor(tc);
sp_text_context_update_text_selection(tc);
return TRUE;
- }
+ }
}
break;
case GDK_bracketright:
sp_te_adjust_rotation_screen(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, 10);
} else {
sp_te_adjust_rotation_screen(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, 1);
- }
+ }
} else {
sp_te_adjust_rotation(tc->text, tc->text_sel_start, tc->text_sel_end, ec->desktop, 90);
}
tc->grabbed = NULL;
}
Inkscape::Rubberband::get()->stop();
- }
+ }
}
}
break;