aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpieh <misiek.piechowiak@gmail.com>2013-04-11 10:10:39 +0200
committerpieh <misiek.piechowiak@gmail.com>2013-04-22 18:09:16 +0200
commit1a87283bce5595fd16fb549a07cacafcc90f2cf7 (patch)
tree6feaa9d83246b4688858db3c2b648ac45de749ce
parentbb79b32b87c4324208b8d5e4953cbe7522fb6554 (diff)
GUIFadeLabelControl: fix control being marked as dirty when label stays empty
If used infolabel will return empty string on first use, m_shortText will never be evaluated. If m_shortText is set to false control is marked as dirty so if used infolabel is empty control will be wrongly marked as dirty.
-rw-r--r--xbmc/guilib/GUIFadeLabelControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/guilib/GUIFadeLabelControl.cpp b/xbmc/guilib/GUIFadeLabelControl.cpp
index 706d073219..ecbd69ebbc 100644
--- a/xbmc/guilib/GUIFadeLabelControl.cpp
+++ b/xbmc/guilib/GUIFadeLabelControl.cpp
@@ -35,7 +35,7 @@ CGUIFadeLabelControl::CGUIFadeLabelControl(int parentID, int controlID, float po
m_lastLabel = -1;
m_scrollSpeed = labelInfo.scrollSpeed; // save it for later
m_resetOnLabelChange = resetOnLabelChange;
- m_shortText = false;
+ m_shortText = true;
}
CGUIFadeLabelControl::CGUIFadeLabelControl(const CGUIFadeLabelControl &from)