Stop at end of text

This commit is contained in:
Matthias Neeracher 2011-09-26 04:45:37 +02:00
parent c3761596e5
commit 8286e86acf

View File

@ -136,7 +136,8 @@
if (text.size()) if (text.size())
text += ' '; text += ' ';
text += fSong->GetWord(fStanza, textAt); text += fSong->GetWord(fStanza, textAt);
fSong->NextWord(fStanza, textAt); if (!fSong->NextWord(fStanza, textAt))
break;
} }
[fText release]; [fText release];
fText = [[NSString alloc] initWithUTF8String:text.c_str()]; fText = [[NSString alloc] initWithUTF8String:text.c_str()];