mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 22:41:09 +00:00
* allow macro names with *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23272 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9940ca7730
commit
dee531e765
@ -492,8 +492,9 @@ bool MathMacro::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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user