diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-02-18 17:47:19 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-02-18 17:47:19 +0000 |
| commit | 95fd9b11da36223de31a1cc0ae2552dbcfbf89e3 (patch) | |
| tree | 3bb718d5f9645441f3b780fe88eead3b0d8517de /src | |
| parent | adding foldable-box to extensions/Makefile.am (diff) | |
| download | inkscape-95fd9b11da36223de31a1cc0ae2552dbcfbf89e3.tar.gz inkscape-95fd9b11da36223de31a1cc0ae2552dbcfbf89e3.zip | |
fix cursor placement logic
(bzr r7323)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dialogs/spellcheck.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dialogs/spellcheck.cpp b/src/dialogs/spellcheck.cpp index fdbe562fe..8f4a434de 100644 --- a/src/dialogs/spellcheck.cpp +++ b/src/dialogs/spellcheck.cpp @@ -522,8 +522,10 @@ spellcheck_next_word() } _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); @@ -531,9 +533,7 @@ spellcheck_next_word() _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 { |
