From 5e01b2dfa1740c11f4b7c6c43b74f71d13212ddb Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Jun 2009 21:43:39 +0000 Subject: [PATCH] Buffer::Spellcheck(): Fix infinite loop when a math inset is met... stupid me! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30231 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 3c8e878c0b..627159826a 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3383,7 +3383,7 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to, for (; from != end; from.forwardPos()) { // We are only interested in text so remove the math CursorSlice. while (from.inMathed()) - from.pop_back(); + from.forwardInset(); to = from; if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions)) break;