]> git.lyx.org Git - features.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>
Sat, 28 Sep 2019 14:08:06 +0000 (16:08 +0200)
When automatic command termination was added to texstream it was
forgotten to reset its status after a math inset.

src/mathed/InsetMathNest.cpp

index 896ca664c29cde0d2067a974637c1a29093e1f5a..66e900ad52441be1be5c857890172c72268d4cbe 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);
 }