]> 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)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 23 Apr 2019 19:06:12 +0000 (21:06 +0200)
commitacba847649f89b63a7762a227a3aac2a12fd6b75
treeb85a924e872d354fc73abeb20ed9711413729f5d
parent93bfd1d8f8b1453ea1d66615a408a4f358addf45
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