Only draw scrollinglist at the requested layer index.

This commit is contained in:
Pieter Hulshoff 2016-05-11 12:54:50 +02:00
parent 784dfdca16
commit 9150ec2079

View File

@ -685,7 +685,7 @@ void ScrollingList::draw(unsigned int layer)
for(unsigned int i = 0; i < components_.size(); ++i)
{
Component *c = components_.at(i);
if(c) c->draw();
if(c && c->baseViewInfo.Layer == layer) c->draw();
}
}