Paragraph::isLetter(): Fix word selection in ERT. The check had nothing to do with spellchecking. This method is misnamed, it should perhaps be renamed to 'canBePartOfWord()'.

NB: I am not sure this escape character preference is something useful to keep. If some language has some special escape characters beside the single quote one we should support that out of the box and not asking the user to define it or them in the preference dialog.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30210 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-06-21 13:43:34 +00:00
parent 5a54d11157
commit 7a4668b25e

View File

@ -2473,7 +2473,6 @@ bool Paragraph::isLetter(pos_type pos) const
// We want to pass the ' and escape chars to the spellchecker
static docstring const quote = from_utf8(lyxrc.spellchecker_esc_chars + '\'');
return (isLetterChar(c) || isDigit(c) || contains(quote, c))
&& (!d->inset_owner_ || d->inset_owner_->allowSpellCheck())
&& pos != size()
&& !isDeleted(pos);
}