summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index d25e4baa1..f4e2792ef 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -468,13 +468,13 @@ void ItemContainer::updateMatrix()
break;
}
- for (unsigned idx = 0; idx < sortedItems.size(); idx ++)
+ std::vector<ItemIdPair*>::iterator iter;
+ for (iter = sortedItems.begin(); iter != sortedItems.end(); ++iter)
{
- int itemIndex = idx;
if (j >= mGridRows)
break;
- mShowMatrix[j * mGridColumns + i] = sortedItems[itemIndex]->mId;
+ mShowMatrix[j * mGridColumns + i] = (*iter)->mId;
i ++;
if (i >= mGridColumns)