spell fix from Alfredo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6759 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-10 03:04:22 +00:00
parent d2cd66ecc0
commit 33aab6ed79
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2003-04-09 Alfredo Braunstein <abraunst@libero.it>
* text.C (selectNextWordToSpellcheck): don't accidentally
skip insets
2003-04-10 John Levon <levon@movementarian.org>
* ToolbarBackend.C (getIcon): special handling for

View File

@ -2159,11 +2159,11 @@ LyXText::selectNextWordToSpellcheck(float & value)
break;
}
bool const is_bad_inset(cpit->isInset(cpos)
&& !cpit->getInset(cpos)->allowSpellcheck());
bool const is_good_inset = cpit->isInset(cpos)
&& cpit->getInset(cpos)->allowSpellcheck();
if (cpit->isLetter(cpos) && !isDeletedText(*cpit, cpos)
&& !is_bad_inset)
if (!isDeletedText(*cpit, cpos)
&& (is_good_inset || cpit->isLetter(cpos)))
break;
cursor.pos(cpos + 1);