From 35db143564b649b4b24a346331ba2278a0851256 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 25 Jul 2009 08:22:37 +0000 Subject: [PATCH] * Text.cpp (dissolveInset): - perform updateLabels also after dissolving an empty inset (bug 6003). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30771 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index 3bb3ef5540..e75e94c8d1 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1241,7 +1241,10 @@ bool Text::dissolveInset(Cursor & cur) // restore position cur.pit() = min(cur.lastpit(), spit); cur.pos() = min(cur.lastpos(), spos); - } + } else + // this is the least that needs to be done (bug 6003) + // in the above case, pasteParagraphList handles this + cur.buffer()->updateLabels(); cur.clearSelection(); cur.resetAnchor(); return true; -- 2.39.2