mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +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
|
// find row to insert the item
|
||||||
int i = 1; // skip the Standard layout
|
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) {
|
while (is.compare(titem) < 0) {
|
||||||
// e.g. --Separator--
|
// e.g. --Separator--
|
||||||
if (is[0].category() != QChar::Letter_Uppercase)
|
if (is[0].category() != QChar::Letter_Uppercase)
|
||||||
@ -444,7 +444,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted)
|
|||||||
++i;
|
++i;
|
||||||
if (i == end)
|
if (i == end)
|
||||||
break;
|
break;
|
||||||
is = model_->item(i, 1)->text();
|
is = model_->item(i, 0)->text();
|
||||||
}
|
}
|
||||||
|
|
||||||
model_->insertRow(i, row);
|
model_->insertRow(i, row);
|
||||||
|
Loading…
Reference in New Issue
Block a user