]> git.sesse.net Git - vlc/commitdiff
Forward port [15418] and [15420].
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 29 Apr 2006 18:33:44 +0000 (18:33 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 29 Apr 2006 18:33:44 +0000 (18:33 +0000)
modules/gui/skins2/controls/ctrl_text.cpp

index c394fcd95e6226c928773bb2f423e81ce6ae9dbc..2bc266994de3b978efe4ec55fa8c9072a69dd2f1 100644 (file)
@@ -216,7 +216,10 @@ void CtrlText::setText( const UString &rText, uint32_t color )
 
 void CtrlText::onUpdate( Subject<VarText, void*> &rVariable, void* arg )
 {
-    displayText( m_rVariable.get() );
+    if( isVisible() )
+    {
+        displayText( m_rVariable.get() );
+    }
 }