mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* do not ignore "requires" field in MathMacro
(fixes http://bugzilla.lyx.org/show_bug.cgi?id=3520) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18199 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ced73c33e6
commit
1f9652587e
@ -203,6 +203,10 @@ void MathMacro::drawSelection(PainterInfo & pi, int x, int y) const
|
||||
|
||||
void MathMacro::validate(LaTeXFeatures & features) const
|
||||
{
|
||||
string const require = MacroTable::globalMacros().get(name()).requires();
|
||||
if (!require.empty())
|
||||
features.require(require);
|
||||
|
||||
if (name() == "binom" || name() == "mathcircumflex")
|
||||
features.require(to_utf8(name()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user