From 439338850831ee099dbceb3fc5d3438e3e7c77cc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 22 Feb 2018 00:20:19 -0500 Subject: [PATCH] Fix bug #10882. --- src/frontends/qt4/GuiRef.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index c07ce5ce87..907568761a 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -491,8 +491,8 @@ void GuiRef::redoRefs() QString const cat = refsCategories.at(i); QTreeWidgetItem * item = new QTreeWidgetItem(refsTW); item->setText(0, cat); - for (int i = 0; i < refsStrings.size(); ++i) { - QString const ref = refsStrings.at(i); + for (int j = 0; j < refsStrings.size(); ++j) { + QString const ref = refsStrings.at(j); if ((ref.startsWith(cat + QString(":"))) || (cat == qt_("") && (!ref.mid(1).contains(":") || ref.left(1).contains(":")))) { @@ -609,9 +609,9 @@ void GuiRef::resetFilter() } -bool GuiRef::initialiseParams(std::string const & data) +bool GuiRef::initialiseParams(std::string const & sdata) { - InsetCommand::string2params(data, params_); + InsetCommand::string2params(sdata, params_); return true; }