mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-02 14:01:10 +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?
|
// valid characters?
|
||||||
for (size_t i = 0; i<n.size(); ++i) {
|
for (size_t i = 0; i<n.size(); ++i) {
|
||||||
if (!(n[i] >= 'a' && n[i] <= 'z') &&
|
if (!(n[i] >= 'a' && n[i] <= 'z')
|
||||||
!(n[i] >= 'A' && n[i] <= 'Z'))
|
&& !(n[i] >= 'A' && n[i] <= 'Z')
|
||||||
|
&& n[i] != '*')
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1030,8 +1030,9 @@ bool MathMacroTemplate::validName() const
|
|||||||
|
|
||||||
// valid characters?
|
// valid characters?
|
||||||
for (size_t i = 0; i < n.size(); ++i) {
|
for (size_t i = 0; i < n.size(); ++i) {
|
||||||
if (!(n[i] >= 'a' && n[i] <= 'z') &&
|
if (!(n[i] >= 'a' && n[i] <= 'z')
|
||||||
!(n[i] >= 'A' && n[i] <= 'Z'))
|
&& !(n[i] >= 'A' && n[i] <= 'Z')
|
||||||
|
&& n[i] != '*')
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user