]> git.lyx.org Git - lyx.git/commitdiff
revert accidental commit: not exactly whitespace.
authorAndré Pönitz <poenitz@gmx.net>
Mon, 4 Aug 2003 09:48:23 +0000 (09:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 4 Aug 2003 09:48:23 +0000 (09:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7493 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 711f77c76818b0a0503dec5fa78968c2e345428d..1697b085f569ced18a28351eb705bbecec148335 100644 (file)
@@ -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  <kayvan@sylvan.com>
index 2e795049ffb32069c5b09711d036d2011c8e1f50..949df4f60b44a62e4bcfbee327811daa04f27897 100644 (file)
@@ -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);
+               }
        }
 }