]> git.lyx.org Git - features.git/commitdiff
* sorting depends on translated string, i.e. column 0 of the layout model
authorStefan Schimanski <sts@lyx.org>
Tue, 4 Mar 2008 09:54:53 +0000 (09:54 +0000)
committerStefan Schimanski <sts@lyx.org>
Tue, 4 Mar 2008 09:54:53 +0000 (09:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23429 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 76cdefe45b347c2105c42c533b52928fdb1c586d..b1f7c877df3ce873337e9ff5a34eb3c4260a3e42 100644 (file)
@@ -436,7 +436,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted)
 
        // find row to insert the item
        int i = 1; // skip the Standard layout
-       QString is = model_->item(i, 1)->text();
+       QString is = model_->item(i, 0)->text();
        while (is.compare(titem) < 0) {
                // e.g. --Separator--
                if (is[0].category() != QChar::Letter_Uppercase)
@@ -444,7 +444,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted)
                ++i;
                if (i == end)
                        break;
-               is = model_->item(i, 1)->text();
+               is = model_->item(i, 0)->text();
        }
 
        model_->insertRow(i, row);