[guilib] fix labelcontrols with auto width always being marked as dirty if they speci...
authorJonathan Marshall <jmarshall@xbmc.org>
Fri, 16 May 2014 22:26:08 +0000 (10:26 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Wed, 16 Jul 2014 10:03:10 +0000 (22:03 +1200)
xbmc/guilib/GUILabelControl.cpp

index 19b14ca..63c0f68 100644 (file)
@@ -181,7 +181,7 @@ void CGUILabelControl::Process(unsigned int currentTime, CDirtyRegionList &dirty
   bool changed = false;
 
   changed |= m_label.SetColor(IsDisabled() ? CGUILabel::COLOR_DISABLED : CGUILabel::COLOR_TEXT);
-  changed |= m_label.SetMaxRect(m_posX, m_posY, GetWidth(), m_height);
+  changed |= m_label.SetMaxRect(m_posX, m_posY, GetMaxWidth(), m_height);
   changed |= m_label.Process(currentTime);
 
   if (changed)