Commit fce620e8 authored by Erwan Tulou's avatar Erwan Tulou

skins2: don't draw control if non visible at initialisation

parent 1c3dea63
......@@ -101,7 +101,8 @@ void GenericLayout::addControl( CtrlGeneric *pControl,
pControl->setLayout( this, rPosition );
// Draw the control
pControl->draw( *m_pImage, rPosition.getLeft(), rPosition.getTop() );
if( pControl->isVisible() )
pControl->draw( *m_pImage, rPosition.getLeft(), rPosition.getTop() );
// Add the control in the list.
// This list must remain sorted by layer order
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment