GRIM: Shut up a warning.

This commit is contained in:
Giulio Camuffo 2011-07-04 12:13:48 +02:00
parent 73bd50a96f
commit 994c2ef52f

View File

@ -251,9 +251,9 @@ void TextObject::setupText() {
for (int j = 0; j < _numberLines; j++) {
int nextLinePos, cutLen;
const char *pos = strchr(message.c_str(), '\n');
if (pos) {
nextLinePos = pos - message.c_str();
const char *breakPos = strchr(message.c_str(), '\n');
if (breakPos) {
nextLinePos = breakPos - message.c_str();
cutLen = nextLinePos + 1;
} else {
nextLinePos = message.size();