From 2f4f2465128a246f07ab345c204e644051c7e074 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Jun 2009 21:27:51 +0000 Subject: [PATCH] A word have a non zero size. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30230 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 47f08d22cf..3965a61d3c 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3089,7 +3089,7 @@ bool Paragraph::spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl, return false; locateWord(from, to, WHOLE_WORD); - if (from >= pos_type(d->text_.size())) + if (from == to || from >= pos_type(d->text_.size())) return false; docstring word = asString(from, to, AS_STR_INSETS); -- 2.39.2