mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
d2cd66ecc0
commit
33aab6ed79
@ -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
|
||||
|
14
src/text.C
14
src/text.C
@ -2159,13 +2159,13 @@ LyXText::selectNextWordToSpellcheck(float & value)
|
||||
break;
|
||||
}
|
||||
|
||||
bool const is_bad_inset(cpit->isInset(cpos)
|
||||
&& !cpit->getInset(cpos)->allowSpellcheck());
|
||||
|
||||
if (cpit->isLetter(cpos) && !isDeletedText(*cpit, cpos)
|
||||
&& !is_bad_inset)
|
||||
break;
|
||||
|
||||
bool const is_good_inset = cpit->isInset(cpos)
|
||||
&& cpit->getInset(cpos)->allowSpellcheck();
|
||||
|
||||
if (!isDeletedText(*cpit, cpos)
|
||||
&& (is_good_inset || cpit->isLetter(cpos)))
|
||||
break;
|
||||
|
||||
cursor.pos(cpos + 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user