diff --git a/src/ChangeLog b/src/ChangeLog index 4406b8167f..bb3e7c2624 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-09-08 Jean-Marc Lasgouttes + + * lyxfunc.C (lookupChange): fix code when cursor depth is greater + than 2. + 2005-09-08 Angus Leeming * ispell.C: diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 3edf198430..0964eba165 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -182,7 +182,7 @@ bool getStatus(LCursor cursor, */ 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) { CursorSlice const & slice = dit[i];