diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 9b69c121..f15fe682 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -116,10 +116,13 @@ void ItemContainer::draw(gcn::Graphics *graphics) { if (normalize(item->getInfo().getName()).find(mFilter) == std::string::npos) continue; + mFilteredMap[currentIndex] = item; + currentIndex++; + } + else + { + mFilteredMap[itemIndex] = item; } - - mFilteredMap[currentIndex] = item; - currentIndex++; } } |