]> git.lyx.org Git - features.git/commit
Correctly terminate a user math macro in certain circumstances
authorEnrico Forestieri <forenr@lyx.org>
Wed, 6 Jan 2021 23:57:36 +0000 (00:57 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 6 Jan 2021 23:57:36 +0000 (00:57 +0100)
commitfece5d4f376393bd7bcf15393d8f04420053e7c1
treedb1b7da499849195532571acbaaeb34eca1bb9dd
parent99e636ae7b83dacb5acc96ae3b60a96c28339c0e
Correctly terminate a user math macro in certain circumstances

If a macro has only optionals and none is specified and a [ immediately
follows, we have to terminate the macro with {}, otherwise what follows
is taken to be an optional argument.

Fixes #11665.
src/mathed/InsetMathMacro.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h