summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-14 21:50:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-14 21:50:38 +0300
commitdf0c7313f33882ab29233c5cf305de3fff9146cd (patch)
tree0a307a69899e0ce0d72e7324aa0c6cfeae0d6e9c /src/gui/widgets
parentaa92b733cc02765900bc2f18162f406062f34870 (diff)
downloadplus-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.gz
plus-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.bz2
plus-df0c7313f33882ab29233c5cf305de3fff9146cd.tar.xz
plus-df0c7313f33882ab29233c5cf305de3fff9146cd.zip
Dont try to draw hidden rows by filter in item container.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp8
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;