From 7a4668b25e6434ec1f072b49bd95f1ce978f1f38 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 21 Jun 2009 13:43:34 +0000 Subject: [PATCH] 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 --- src/Paragraph.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index d5a607753b..1a89df078a 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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); } -- 2.39.2