From 483458d6d4fd40e3008764179c9296c0f561f138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 15 Mar 2001 18:22:33 +0000 Subject: [PATCH] mathed61.diff git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1778 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 6 ++++++ src/mathed/math_cursor.C | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 39788c167a..6c98a0638c 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,9 @@ + +2001-03-15 André Pönitz + + * math_cursor.C: fix bug (cursor was leaving two insets at a time instead + of one) + 2001-03-15 Lars Gullik Bjønnes * math_macrotable.h: noncopyable is in namespace boost diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 5dd6966e38..40997ce942 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -79,7 +79,8 @@ struct MathStackXIter { } MathedXIter * pop() { - return &item[--i]; + --i; + return &item[i - 1]; } MathedXIter * Item(int idx) {