mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 17:09:41 +00:00
Do not add symbols twice to Encoding::symbolsList()
Also sort the list properly. Fixes #10644
This commit is contained in:
parent
eb4723a589
commit
0887f89350
@ -264,11 +264,14 @@ vector<char_type> Encoding::symbolsList() const
|
||||
// add those below start_encodable_
|
||||
for (char_type c = 0; c < start_encodable_; ++c)
|
||||
symbols.push_back(c);
|
||||
// now the ones from the unicodesymbols file
|
||||
// now the ones from the unicodesymbols file that are not already there
|
||||
CharInfoMap::const_iterator const end = unicodesymbols.end();
|
||||
CharInfoMap::const_iterator it = unicodesymbols.begin();
|
||||
for (; it != end; ++it)
|
||||
symbols.push_back(it->first);
|
||||
if (find(symbols.begin(), symbols.end(), it->first) == symbols.end())
|
||||
symbols.push_back(it->first);
|
||||
// finally, sort the vector
|
||||
sort(symbols.begin(), symbols.end());
|
||||
return symbols;
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,7 @@ What's new
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
- Remove duplicate entries from the Symbols dialog (bug 10644).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
Loading…
x
Reference in New Issue
Block a user