From 01d9858c2ed3094a1d8e64f624a66f27d10c4e84 Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Mon, 8 Apr 2013 11:49:13 +0200 Subject: [PATCH] skins2: first check for playout existence (generic control) --- modules/gui/skins2/controls/ctrl_generic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/skins2/controls/ctrl_generic.cpp b/modules/gui/skins2/controls/ctrl_generic.cpp index 7bded8c3b2..c821b0823c 100644 --- a/modules/gui/skins2/controls/ctrl_generic.cpp +++ b/modules/gui/skins2/controls/ctrl_generic.cpp @@ -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 ); } } -- 2.39.2