summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9606980)
raw | patch | inline | side by side (parent: 9606980)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 18 Feb 2009 17:47:19 +0000 (17:47 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 18 Feb 2009 17:47:19 +0000 (17:47 +0000) |
src/dialogs/spellcheck.cpp | patch | blob | history |
index fdbe562fec09b052ff7cab5322f4631f525729d3..8f4a434def8cad2a1bcbe7e979ed74bc36fa7d62 100644 (file)
}
_desktop->scroll_to_point (scrollto, 1.0);
- // if in Text tool, position cursor to the beginnign of word
+ // select text; if in Text tool, position cursor to the beginning of word
// unless it is already in the word
+ if (_desktop->selection->singleItem() != _text)
+ _desktop->selection->set (_text);
if (tools_isactive(_desktop, TOOLS_TEXT)) {
Inkscape::Text::Layout::iterator *cursor =
sp_text_context_get_cursor_position(SP_TEXT_CONTEXT(_desktop->event_context), _text);
_desktop->selection->set (_text);
else if (*cursor <= _begin_w || *cursor >= _end_w)
sp_text_context_place_cursor (SP_TEXT_CONTEXT(_desktop->event_context), _text, _begin_w);
- } else { // just select the object
- _desktop->selection->set (_text);
- }
+ }
// get suggestions
{