]> git.lyx.org Git - features.git/commitdiff
* is.at is const, is[] is a deep non-const copy
authorStefan Schimanski <sts@lyx.org>
Wed, 5 Mar 2008 19:00:11 +0000 (19:00 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 5 Mar 2008 19:00:11 +0000 (19:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 0638ef13d23c6925e4c44b670f95599e4a60b6bc..e39f5e5f3004998d4997d2fcca181684c8afd6f7 100644 (file)
@@ -547,7 +547,7 @@ void GuiLayoutBox::addItemSort(docstring const & item, bool sorted)
                QString is = model_->item(i, 0)->text();
                while (is.compare(titem) < 0) {
                        // e.g. --Separator--
-                       if (is[0].category() != QChar::Letter_Uppercase)
+                       if (is.at(0).category() != QChar::Letter_Uppercase)
                                break;
                        ++i;
                        if (i == end)