mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Correct toolbar environment sorting for other locales.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c0414bef66
commit
75a5c1c7a1
@ -277,7 +277,7 @@ void GuiLayoutBox::addItemSort(QString const & item, bool sorted)
|
||||
|
||||
// Let the default one be at the beginning
|
||||
int i = 1;
|
||||
for (setCurrentIndex(i); currentText() < item;) {
|
||||
for (setCurrentIndex(i); currentText().localeAwareCompare(item) < 0; ) {
|
||||
// e.g. --Separator--
|
||||
if (currentText()[0].category() != QChar::Letter_Uppercase)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user