mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* 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:
parent
b36c8ae173
commit
4423a8a6f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user