From df0c7313f33882ab29233c5cf305de3fff9146cd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Aug 2017 21:50:38 +0300 Subject: Dont try to draw hidden rows by filter in item container. --- src/gui/widgets/itemcontainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 5f1cd4b05..4b70c86b7 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -354,7 +354,7 @@ void ItemContainer::draw(Graphics *const graphics) graphics->drawTileCollection(mVertexes); } - for (int j = 0; j < mGridRows; j++) + for (int j = 0; j < mDrawRows; j++) { const int intY0 = j * mBoxHeight; int itemIndex = j * mGridColumns - 1; @@ -395,7 +395,7 @@ void ItemContainer::draw(Graphics *const graphics) } } - for (int j = 0; j < mGridRows; j++) + for (int j = 0; j < mDrawRows; j++) { const int intY0 = j * mBoxHeight; int itemIndex = j * mGridColumns - 1; @@ -476,7 +476,7 @@ void ItemContainer::safeDraw(Graphics *const graphics) } } - for (int j = 0; j < mGridRows; j++) + for (int j = 0; j < mDrawRows; j++) { const int intY0 = j * mBoxHeight; int itemIndex = j * mGridColumns - 1; @@ -517,7 +517,7 @@ void ItemContainer::safeDraw(Graphics *const graphics) } } - for (int j = 0; j < mGridRows; j++) + for (int j = 0; j < mDrawRows; j++) { const int intY0 = j * mBoxHeight; int itemIndex = j * mGridColumns - 1; -- cgit v1.2.3-70-g09d2