Draw: Fixed issue with very long texts in DrawText #572

git-svn-id: svn://ultimatepp.org/upp/trunk@6562 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-11-16 11:36:09 +00:00
parent 58f59ae605
commit f0e1f55ee4
2 changed files with 7 additions and 7 deletions

View file

@ -57,7 +57,7 @@ void Draw::DrawText(int x, int y, int angle, const wchar *text, Font font,
else {
int c = 1;
int dd = 0;
while(i + c < n) {
while(i + c < n && c < 1000) {
GlyphInfo gi2 = GetGlyphInfo(font, text[i + c]);
if(!gi2.IsNormal())
break;