mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
fix change lookup when cursor depth is greater than 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10427 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f90387b520
commit
15770cf3d2
@ -1,3 +1,8 @@
|
|||||||
|
2005-09-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* lyxfunc.C (lookupChange): fix code when cursor depth is greater
|
||||||
|
than 2.
|
||||||
|
|
||||||
2005-09-08 Angus Leeming <leeming@lyx.org>
|
2005-09-08 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* ispell.C:
|
* ispell.C:
|
||||||
|
@ -182,7 +182,7 @@ bool getStatus(LCursor cursor,
|
|||||||
*/
|
*/
|
||||||
Change::Type lookupChange(DocIterator const & dit, bool outer = false)
|
Change::Type lookupChange(DocIterator const & dit, bool outer = false)
|
||||||
{
|
{
|
||||||
size_t const depth = dit.depth() - outer ? 1 : 0;
|
size_t const depth = dit.depth() - (outer ? 1 : 0);
|
||||||
|
|
||||||
for (size_t i = 0 ; i < depth ; ++i) {
|
for (size_t i = 0 ; i < depth ; ++i) {
|
||||||
CursorSlice const & slice = dit[i];
|
CursorSlice const & slice = dit[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user