]> git.lyx.org Git - lyx.git/commitdiff
#7201 return "correct" wrong spelled word when before a dot - exclude the dot from...
authorStephan Witt <switt@lyx.org>
Sun, 2 Jan 2011 11:31:28 +0000 (11:31 +0000)
committerStephan Witt <switt@lyx.org>
Sun, 2 Jan 2011 11:31:28 +0000 (11:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37062 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 4d172059725edc5c6337d7f4b51b7a37480aba8f..7928917ba6752f9b232ccd1db1f882f210bc366b 100644 (file)
@@ -3634,6 +3634,11 @@ SpellChecker::Result Paragraph::spellCheck(pos_type & from, pos_type & to,
                                        LYXERR(Debug::GUI, "misspelled word is correct with dot: \"" <<
                                           word << "\" [" <<
                                           from << ".." << to << "]");
+                               } else {
+                                       // spell check with dot appended failed
+                                       // restore original word/lang value
+                                       word = asString(from, to, AS_STR_INSETS | AS_STR_SKIPDELETE);
+                                       wl = WordLangTuple(word, lang);
                                }
                        }
                }