]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 11667
authorEnrico Forestieri <forenr@lyx.org>
Sat, 28 Sep 2019 14:08:06 +0000 (16:08 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 1 Oct 2019 06:10:46 +0000 (08:10 +0200)
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
status.23x

index 63fa74a87e61834556b3927fabcd3a8c320eb514..bc3c2add0eadbf963aa66a0b140c4156d7f10d16 100644 (file)
@@ -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);
 }
 
 
index 66371093507cfba62915f24d2dadff730205c294..9c1906d9933d16625db3f70cb0f70ce48c739fb9 100644 (file)
@@ -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