* cosmetic and comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23624 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-10 12:54:00 +00:00
parent 97a1fcc721
commit c17df2980b

View File

@ -1268,10 +1268,11 @@ bool MathMacroTemplate::fixNameAndCheckIfValid()
void MathMacroTemplate::validate(LaTeXFeatures & features) const
{
if (optionals_ > 0) {
//features.require("newlyxcommand");
// we need global optional macro arguments. They are not available
// with \def, and \newcommand does not support global macros. So we
// are bound to xargs also for the single-optional-parameter case.
if (optionals_ > 0)
features.require("xargs");
}
}
void MathMacroTemplate::getDefaults(vector<docstring> & defaults) const