* 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:
Edwin Leuven 2007-05-04 15:30:27 +00:00
parent ced73c33e6
commit 1f9652587e

View File

@ -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()));
}