diff options
-rw-r--r-- | linguistic/source/spelldta.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index bb62a5a059d4..001fbe9ece69 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -99,7 +99,7 @@ void SearchSimilarText( const OUString &rText, sal_Int16 nLanguage, // remove characters used to determine hyphenation positions aEntryTxt = comphelper::string::remove(pEntries[k]->getDictionaryWord(), '='); } - if (!aEntryTxt.isEmpty() && LevDistance( rText, aEntryTxt ) <= 2) + if (!aEntryTxt.isEmpty() && aEntryTxt.getLength() > 1 && LevDistance( rText, aEntryTxt ) <= 2) rDicListProps.push_back( aEntryTxt ); } } |