Commit 01d9858c authored by Erwan Tulou's avatar Erwan Tulou

skins2: first check for playout existence (generic control)

parent 64b55f14
......@@ -76,12 +76,12 @@ void CtrlGeneric::unsetLayout()
void CtrlGeneric::notifyLayout( int width, int height,
int xOffSet, int yOffSet )
{
width = ( width > 0 ) ? width : m_pPosition->getWidth();
height = ( height > 0 ) ? height : m_pPosition->getHeight();
// Notify the layout
if( m_pLayout )
{
width = ( width > 0 ) ? width : m_pPosition->getWidth();
height = ( height > 0 ) ? height : m_pPosition->getHeight();
m_pLayout->onControlUpdate( *this, width, height, xOffSet, yOffSet );
}
}
......
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