From d2a9294e3fd24c17e4c7a3dcbe86e0871468d705 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 2 Oct 2001 10:50:10 +0000 Subject: [PATCH] sanity check git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2832 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_macrotemplate.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mathed/math_macrotemplate.C b/src/mathed/math_macrotemplate.C index 09b6075f21..79e1894e1b 100644 --- a/src/mathed/math_macrotemplate.C +++ b/src/mathed/math_macrotemplate.C @@ -14,7 +14,12 @@ MathMacroTemplate::MathMacroTemplate() MathMacroTemplate::MathMacroTemplate(string const & nm, int numargs) : MathNestInset(1), numargs_(numargs), name_(nm) -{} +{ + if (numargs_ < 1 || numargs_ > 9) { + lyxerr << "MathMacroTemplate::MathMacroTemplate: wrong # of arguments: " + << numargs_ << std::endl; + } +} MathInset * MathMacroTemplate::clone() const -- 2.39.5