* sorting depends on translated string, i.e. column 0 of the layout model

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23429 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-04 09:54:53 +00:00
parent b36c8ae173
commit 4423a8a6f5

View 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);