From 6768d3a148b673b860fcd5e26d1cd45aa73388b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sun, 17 Jul 2005 15:22:15 +0000 Subject: [PATCH] fix counters on depm git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10290 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 6 +++++- src/text2.C | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c8874df205..ef1b893c71 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-07-17 Martin Vermeer + + * text2.C: fix counter update for DEPM problem reported by + Georg Baum + 2005-07-17 Juergen Vigna * BufferView_pimpl.C (setBuffer): save/restore the @@ -7,7 +12,6 @@ * buffer.C (saveCursor): add saveDocumentIterators to save the cursor when switching buffer. - 2005-07-17 Michael Schmitt * debug.C: fix typo diff --git a/src/text2.C b/src/text2.C index 77ce0814e7..9fcc8b3413 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1296,8 +1296,10 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old) } } - if (deleted) + if (deleted) { + updateCounters(cur.buffer()); return true; + } if (pars_[old.pit()].stripLeadingSpaces()) cur.resetAnchor();