From 1f9652587e2eab9c9e79a9d344fe4bdbd4ebb481 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Fri, 4 May 2007 15:30:27 +0000 Subject: [PATCH] * 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 --- src/mathed/MathMacro.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index d38cedaea3..6da3c6e596 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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())); } -- 2.39.5