]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
Fix MSVC warning
[lyx.git] / src / Text.cpp
index 3bb3ef5540f11bfaed51daa1193c7bf6d7507699..e75e94c8d1c51fc08a5e654623be7bc578f929ac 100644 (file)
@@ -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;