mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Fix #12524. From Enrico.
This commit is contained in:
parent
e7f9554f39
commit
4af43b6d52
@ -908,14 +908,18 @@ void InsetMathMacro::validate(LaTeXFeatures & features) const
|
||||
features.require(data->requires());
|
||||
}
|
||||
|
||||
if (name() == "binom")
|
||||
features.require("binom");
|
||||
|
||||
// validate the cells and the definition
|
||||
if (displayMode() == DISPLAY_NORMAL) {
|
||||
d->definition_.validate(features);
|
||||
InsetMathNest::validate(features);
|
||||
} else if (displayMode() == DISPLAY_INIT) {
|
||||
MathData ar(const_cast<Buffer *>(&buffer()));
|
||||
MacroData const * data = buffer().getMacro(name());
|
||||
if (data) {
|
||||
asArray(data->definition(), ar);
|
||||
ar.validate(features);
|
||||
}
|
||||
}
|
||||
InsetMathNest::validate(features);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user