mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +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>
|
2003-04-10 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* ToolbarBackend.C (getIcon): special handling for
|
* ToolbarBackend.C (getIcon): special handling for
|
||||||
|
10
src/text.C
10
src/text.C
@ -2159,12 +2159,12 @@ LyXText::selectNextWordToSpellcheck(float & value)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool const is_bad_inset(cpit->isInset(cpos)
|
bool const is_good_inset = cpit->isInset(cpos)
|
||||||
&& !cpit->getInset(cpos)->allowSpellcheck());
|
&& cpit->getInset(cpos)->allowSpellcheck();
|
||||||
|
|
||||||
if (cpit->isLetter(cpos) && !isDeletedText(*cpit, cpos)
|
if (!isDeletedText(*cpit, cpos)
|
||||||
&& !is_bad_inset)
|
&& (is_good_inset || cpit->isLetter(cpos)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
cursor.pos(cpos + 1);
|
cursor.pos(cpos + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user