From: Pavel Sanda Date: Sat, 19 Jan 2008 23:46:03 +0000 (+0000) Subject: Correct toolbar environment sorting for other locales. X-Git-Tag: 1.6.10~6550 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75a5c1c7a18d2f5f197c0534a62a854eb0dc7463;p=features.git Correct toolbar environment sorting for other locales. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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;