]> git.lyx.org Git - features.git/commitdiff
Correct toolbar environment sorting for other locales.
authorPavel Sanda <sanda@lyx.org>
Sat, 19 Jan 2008 23:46:03 +0000 (23:46 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 19 Jan 2008 23:46:03 +0000 (23:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 3851ed9a070c0888aa184766b99b5649123ea7c4..b0ce52deb103190d2b27d771817f9919afda2f5e 100644 (file)
@@ -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;