Fix for the cursor movement bug reported by dekel.

-- 
André Pönitz ........................................ [EMAIL PROTECTED]
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.67
diff -u -p -r1.67 ChangeLog
--- ChangeLog   2001/03/15 16:04:46     1.67
+++ ChangeLog   2001/03/15 17:32:33
@@ -1,3 +1,9 @@
+
+2001-03-15  André Pönitz  <[EMAIL PROTECTED]>
+
+       * math_cursor.C: fix bug (cursor was leaving two insets at a time instead
+          of one)
+
 2001-03-15  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
        * math_macrotable.h: noncopyable is in namespace boost
Index: math_cursor.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v
retrieving revision 1.46
diff -u -p -r1.46 math_cursor.C
--- math_cursor.C       2001/03/15 10:56:00     1.46
+++ math_cursor.C       2001/03/15 17:32:33
@@ -79,7 +79,8 @@ struct MathStackXIter {
        }
 
        MathedXIter * pop() {
-               return &item[--i];
+    --i;
+               return &item[i - 1];
        }
 
        MathedXIter * Item(int idx) {

Reply via email to