Author: switt
Date: Sun Jan  2 12:31:28 2011
New Revision: 37062
URL: http://www.lyx.org/trac/changeset/37062

Log:
#7201 return "correct" wrong spelled word when before a dot - exclude the dot 
from spell checker result

Modified:
   lyx-devel/trunk/src/Paragraph.cpp

Modified: lyx-devel/trunk/src/Paragraph.cpp
==============================================================================
--- lyx-devel/trunk/src/Paragraph.cpp   Sun Jan  2 01:42:52 2011        (r37061)
+++ lyx-devel/trunk/src/Paragraph.cpp   Sun Jan  2 12:31:28 2011        (r37062)
@@ -3634,6 +3634,11 @@
                                        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);
                                }
                        }
                }

Reply via email to