From 2981073a4923717ef3051525ea4fba2dbf5f16dd Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sat, 29 Apr 2006 18:33:44 +0000 Subject: [PATCH] Forward port [15418] and [15420]. --- modules/gui/skins2/controls/ctrl_text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/skins2/controls/ctrl_text.cpp b/modules/gui/skins2/controls/ctrl_text.cpp index c394fcd95e..2bc266994d 100644 --- a/modules/gui/skins2/controls/ctrl_text.cpp +++ b/modules/gui/skins2/controls/ctrl_text.cpp @@ -216,7 +216,10 @@ void CtrlText::setText( const UString &rText, uint32_t color ) void CtrlText::onUpdate( Subject &rVariable, void* arg ) { - displayText( m_rVariable.get() ); + if( isVisible() ) + { + displayText( m_rVariable.get() ); + } } -- 2.39.2