Correctly handle deleted text on inset-dissolve

Part of #10128
This commit is contained in:
Juergen Spitzmueller 2019-12-27 14:32:20 +01:00
parent 28da0f4360
commit b2c2a6e15d

View File

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