From 6a7180b771a0b597589a864e95239303737a55bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 4 Aug 2003 09:48:23 +0000 Subject: [PATCH] revert accidental commit: not exactly whitespace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7493 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 +- src/text2.C | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 711f77c768..1697b085f5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -10,7 +10,7 @@ * lyxfunc.C: * text.C: * text2.C: - * text3.C: replace "complicate" BufferView::update(...) calls with + * text3.C: replace "complicated" BufferView::update(...) calls with simpler ones. 2003-08-02 Kayvan Sylvan diff --git a/src/text2.C b/src/text2.C index 2e795049ff..949df4f60b 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1199,8 +1199,10 @@ void LyXText::updateCounters() string const & newLabel = pit->params().labelString(); - if (oldLabel != newLabel) - redoParagraph(pit); + if (oldLabel.empty() && !newLabel.empty()) { + removeParagraph(rowit); + appendParagraph(rowit); + } } } -- 2.39.2