Skip to content
Browse files

fixes #10686 infinite loop when entering [COLOR in an edit control

  • Loading branch information...
1 parent 547a3ae commit a54451c1afca047424ae7cc39c3cc2b2d5a18887 Jonathan Marshall committed Feb 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/guilib/GUITextLayout.cpp
View
3 xbmc/guilib/GUITextLayout.cpp
@@ -399,7 +399,8 @@ void CGUITextLayout::ParseText(const CStdStringW &text, uint32_t defaultStyle, v
colorStack.pop();
newColor = colorStack.top();
}
- pos = finish + 1;
+ if (finish != CStdString::npos)
+ pos = finish + 1;
}
if (newStyle || newColor != currentColor || newLine)

0 comments on commit a54451c

Please sign in to comment.
Something went wrong with that request. Please try again.