]> git.lyx.org Git - features.git/commit
Write braces around macros only when actually needed
authorEnrico Forestieri <forenr@lyx.org>
Thu, 25 Apr 2019 09:11:51 +0000 (11:11 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 25 Apr 2019 09:11:51 +0000 (11:11 +0200)
commit30f164636969bf84c3247c5b63ca9fe56270546f
tree79080edf7d301454d576530edbb3d2cd95722b1d
parent072fe84186d44daadd755772a793c7cbdcf9bc7e
Write braces around macros only when actually needed

When a macro with optionals appeared inside the optional argument of
another one, the onscreen display and latex output were wrong. This
issue was addressed at [e8f480e7/lyxgit] by enclosing in braces macros
with optional arguments. However, this was done even when the macro
with optionals was in a non-optional argument of another macro.
This commit limits the bracing to the cases where it is really needed
and allows to address some particular issues evidenced in #11552.
src/mathed/InsetMathMacro.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h