From: Enrico Forestieri Date: Sat, 28 Sep 2019 14:08:06 +0000 (+0200) Subject: Fix bug 11667 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1505 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0573bf92e08715266d97ba8cec74107d084744c8;p=features.git Fix bug 11667 When automatic command termination was added to texstream it was forgotten to reset its status after a math inset. --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 896ca664c2..66e900ad52 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -373,9 +373,10 @@ void InsetMathNest::latex(otexstream & os, OutputParams const & runparams) const Changer dummy = wi.changeRowEntry(TexRow::textEntry(runparams.lastid, runparams.lastpos)); write(wi); - // Reset parbreak status after a math inset. + // Reset parbreak and command termination status after a math inset. os.lastChar(0); os.canBreakLine(wi.canBreakLine()); + os.terminateCommand(false); }