Fixed the breakage in the Deck Editor Menu, where the app would hang, looping on trying to word wrap a string. Erwan, pls review. Char is signed here, I'm not sure what the compiler warning was that you saw - NDK related? Does it treat all chars as unsigned?

This commit is contained in:
wrenczes@gmail.com
2011-04-21 23:51:05 +00:00
parent aaa169f86c
commit 5e6c0c612e

View File

@@ -222,7 +222,7 @@ float JLBFont::GetStringWidth(const char *string) const
{
ch = *p - 32;
p++;
//if (ch < 0) continue; //TODO useless test per compiler's message, char always positive, bug needs fixing here
if (ch < 0) continue;
len += mCharWidth[ch+mBase] + mTracking;
}
len -= mTracking;