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:
Jean-Marc Lasgouttes 2005-09-08 12:06:49 +00:00
parent f90387b520
commit 15770cf3d2
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* ispell.C:

View File

@ -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];