From 75a5c1c7a18d2f5f197c0534a62a854eb0dc7463 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 19 Jan 2008 23:46:03 +0000 Subject: [PATCH] Correct toolbar environment sorting for other locales. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 3851ed9a07..b0ce52deb1 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -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; -- 2.39.2