Browse files

GUIFadeLabelControl: fix control being marked as dirty when label sta…

…ys 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.
  • Loading branch information...
pieh committed Apr 11, 2013
1 parent bb79b32 commit 1a87283bce5595fd16fb549a07cacafcc90f2cf7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 1a87283

Please sign in to comment.