* is.at is const, is[] is a deep non-const copy

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-05 19:00:11 +00:00
parent 6488414cf8
commit bf96153185

View File

@ -547,7 +547,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted)
QString is = model_->item(i, 0)->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.at(0).category() != QChar::Letter_Uppercase)
break; break;
++i; ++i;
if (i == end) if (i == end)