From: Stefan Schimanski Date: Wed, 27 Feb 2008 10:43:29 +0000 (+0000) Subject: * allow macro names with * X-Git-Tag: 1.6.10~6055 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dee531e765a261f3ddbe02612a252368e224e029;p=features.git * allow macro names with * git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23272 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 6955de032f..76925a1d77 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -492,8 +492,9 @@ bool MathMacro::validName() const // valid characters? for (size_t i = 0; i= 'a' && n[i] <= 'z') && - !(n[i] >= 'A' && n[i] <= 'Z')) + if (!(n[i] >= 'a' && n[i] <= 'z') + && !(n[i] >= 'A' && n[i] <= 'Z') + && n[i] != '*') return false; } diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 70fc28b5dd..24ff08cf35 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -1030,8 +1030,9 @@ bool MathMacroTemplate::validName() const // valid characters? for (size_t i = 0; i < n.size(); ++i) { - if (!(n[i] >= 'a' && n[i] <= 'z') && - !(n[i] >= 'A' && n[i] <= 'Z')) + if (!(n[i] >= 'a' && n[i] <= 'z') + && !(n[i] >= 'A' && n[i] <= 'Z') + && n[i] != '*') return false; }