]> git.lyx.org Git - features.git/commitdiff
* compare locale aware
authorStefan Schimanski <sts@lyx.org>
Fri, 9 May 2008 01:16:49 +0000 (01:16 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 9 May 2008 01:16:49 +0000 (01:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24688 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 4c9921fe4361d0e468e64baef7963f19c4d85a24..22225003cb5f9550b49411e42110c6b8f234385f 100644 (file)
@@ -737,7 +737,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, docstring const & categor
        if (i < end) {
                // find alphabetic position
                while (i != end
-                      && model_->item(i, 0)->text().compare(titem) < 0 
+                      && model_->item(i, 0)->text().localeAwareCompare(titem) < 0 
                       && (!sortedByCat || model_->item(i, 2)->text() == qcat))
                        ++i;
        }