diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-14 21:50:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-14 21:50:38 +0300 |
commit | df0c7313f33882ab29233c5cf305de3fff9146cd (patch) | |
tree | 0a307a69899e0ce0d72e7324aa0c6cfeae0d6e9c | |
parent | aa92b733cc02765900bc2f18162f406062f34870 (diff) | |
download | mv-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.gz mv-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.bz2 mv-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.xz mv-df0c7313f33882ab29233c5cf305de3fff9146cd.zip |
Dont try to draw hidden rows by filter in item container.
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |