>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> Apply it...

I applied it, and further testing shows that I still have to learn
about operator precedence :)

I am going to apply the following patch now.

JMarc

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.2271
diff -u -p -r1.2271 ChangeLog
--- src/ChangeLog	8 Sep 2005 09:20:13 -0000	1.2271
+++ src/ChangeLog	8 Sep 2005 12:02:32 -0000
@@ -1,3 +1,8 @@
+2005-09-08  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* lyxfunc.C (lookupChange): fix code when cursor depth is greater
+	than 2.
+
 2005-09-08  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* ispell.C:
Index: src/lyxfunc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.665
diff -u -p -r1.665 lyxfunc.C
--- src/lyxfunc.C	7 Sep 2005 10:36:57 -0000	1.665
+++ src/lyxfunc.C	8 Sep 2005 12:02:32 -0000
@@ -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];

Reply via email to