From fe426c2db88298229c6bd7ce5a410e7268aa30f7 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 28 Sep 2019 16:08:06 +0200 Subject: [PATCH] Fix bug 11667 When automatic command termination was added to texstream it was forgotten to reset its status after a math inset. (cherry picked from commit 0573bf92e08715266d97ba8cec74107d084744c8) --- src/mathed/InsetMathNest.cpp | 3 ++- status.23x | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 63fa74a87e..bc3c2add0e 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); } diff --git a/status.23x b/status.23x index 6637109350..9c1906d993 100644 --- a/status.23x +++ b/status.23x @@ -110,6 +110,8 @@ What's new - Fix problem with included objects with Linkback service on Mac (bug 6961). +- Fix termination of commands after math insets (bug 11667). + * USER INTERFACE -- 2.39.5