Close \lyx*displayobjdeleted so that the correct macro is used for
the following deleted material.
This commit is contained in:
Enrico Forestieri 2020-01-12 18:35:15 +01:00
parent ac8aa981db
commit 45f8254cbd

View File

@ -2732,6 +2732,16 @@ void Paragraph::latex(BufferParams const & bparams,
runningChange, style, i, column);
if (incremented)
--parInline;
if (runparams.ctObject == OutputParams::CT_DISPLAYOBJECT
|| runparams.ctObject == OutputParams::CT_UDISPLAYOBJECT) {
// Close \lyx*deleted and force its
// reopening (if needed)
os << '}';
column++;
runningChange = Change(Change::UNCHANGED);
runparams.ctObject = OutputParams::CT_NORMAL;
}
}
} else if (i >= start_pos && (end_pos == -1 || i < end_pos)) {
if (!bparams.useNonTeXFonts)