]> git.lyx.org Git - features.git/commitdiff
Paragraph::isLetter(): Fix word selection in ERT. The check had nothing to do with...
authorAbdelrazak Younes <younes@lyx.org>
Sun, 21 Jun 2009 13:43:34 +0000 (13:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 21 Jun 2009 13:43:34 +0000 (13:43 +0000)
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

src/Paragraph.cpp

index d5a607753b2224b043475fef1aff68f6730a3d6e..1a89df078aab5dfd10607f73456bea4f9fc7221e 100644 (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);
 }