]> git.lyx.org Git - features.git/commitdiff
Correctly handle deleted text on inset-dissolve
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 27 Dec 2019 13:32:20 +0000 (14:32 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 27 Dec 2019 13:32:20 +0000 (14:32 +0100)
Part of #10128

src/Text.cpp

index e060a6c9dd6d69e2dbf95f819063ae8f9bf23a6d..7b7e67bbb7cdd2ed4caece57093e61c543827005 100644 (file)
@@ -1812,6 +1812,9 @@ bool Text::dissolveInset(Cursor & cur)
                // but we'll try the cheaper solution here.
                cur.buffer()->clearReferenceCache();
 
+               // Do not revive deleted text
+               lyx::acceptChanges(plist, b.params());
+
                // ERT paragraphs have the Language latex_language.
                // This is invalid outside of ERT, so we need to
                // change it to the buffer language.