From 5e6c0c612eff24cae9c4561876ba48d022ef3d34 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Thu, 21 Apr 2011 23:51:05 +0000 Subject: [PATCH] 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? --- JGE/src/JLBFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JGE/src/JLBFont.cpp b/JGE/src/JLBFont.cpp index 61ef856ca..85d13ebae 100644 --- a/JGE/src/JLBFont.cpp +++ b/JGE/src/JLBFont.cpp @@ -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;