From b4625c0a0bdef499f411d6c68d736090b7a064b8 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sun, 8 Nov 2015 05:15:40 +0200 Subject: [PATCH] Fixed: CViewText not updating visible text when used by CCtrlTextButton --- code/nel/src/gui/view_text.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/nel/src/gui/view_text.cpp b/code/nel/src/gui/view_text.cpp index 0e3b420a0..1ccd0ec71 100644 --- a/code/nel/src/gui/view_text.cpp +++ b/code/nel/src/gui/view_text.cpp @@ -42,6 +42,8 @@ namespace NLGUI // *************************************************************************** void CViewText::setupDefault () { + _ParentElm = NULL; + _CaseMode = CaseNormal; _Underlined = false; _StrikeThrough = false; @@ -2650,6 +2652,10 @@ namespace NLGUI void CViewText::onInvalidateContent() { _InvalidTextContext= true; + + if (_ParentElm) + _ParentElm->invalidateCoords(); + invalidateCoords(); }