mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix bug #10915.
This commit is contained in:
parent
a919d5b14a
commit
2f68fb5101
@ -190,11 +190,11 @@ bool IndicesList::add(docstring const & n, docstring const & s)
|
||||
docstring sc = s.empty() ?
|
||||
trim(lowercase(name.substr(0, 3))) : s;
|
||||
if (findShortcut(sc) != 0) {
|
||||
int i = 1;
|
||||
docstring scn = sc + convert<docstring>(i);
|
||||
int k = 1;
|
||||
docstring scn = sc + convert<docstring>(k);
|
||||
while (findShortcut(scn) != 0) {
|
||||
++i;
|
||||
scn = sc + convert<docstring>(i);
|
||||
++k;
|
||||
scn = sc + convert<docstring>(k);
|
||||
}
|
||||
in.setShortcut(scn);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user