Permalink
Browse files

[guilib] fix labelcontrols with auto width always being marked as dir…

…ty if they specified a maximum width
  • Loading branch information...
1 parent 9347171 commit d2e534cb0dbf28f49f845ff8865b5376edb9224c Jonathan Marshall committed May 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/guilib/GUILabelControl.cpp
@@ -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)

0 comments on commit d2e534c

Please sign in to comment.