]> git.lyx.org Git - features.git/commit
Amend [54147a71/lyxgit]
authorEnrico Forestieri <forenr@lyx.org>
Tue, 23 Apr 2019 19:06:12 +0000 (21:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:27 +0000 (15:48 +0200)
commitc2a0095feb245db8a57159a5f8d4a3c5b907b490
tree4432614985bddaf314de557dfd08384fd2e1c892
parent0e4188c28d90c6dbb685391f92ab0b53f164a0fc
Amend [54147a71/lyxgit]

If none of the optional arguments of a macro is used, there is no
following '[' after the macro name. Unfortunately, at loading time
the macro machinery is still not initialized, so the optionals()
member of InsetMathMacro is unusable. Hence, we have to track the
creation of macros with optionals as already we do for all macros.
The collected information is only used at loading time, because
the macros are dynamic and they may loose or acquire optional args.

Fixes the particular case reported at #11552.
src/Buffer.h
src/mathed/MathParser.cpp