From 8286e86acff1579f8aa91350555a1b85fe527489 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 26 Sep 2011 04:45:37 +0200 Subject: [PATCH] Stop at end of text --- Sources/VLSheetViewLyrics.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/VLSheetViewLyrics.mm b/Sources/VLSheetViewLyrics.mm index aae2767..bddfd9b 100644 --- a/Sources/VLSheetViewLyrics.mm +++ b/Sources/VLSheetViewLyrics.mm @@ -136,7 +136,8 @@ if (text.size()) text += ' '; text += fSong->GetWord(fStanza, textAt); - fSong->NextWord(fStanza, textAt); + if (!fSong->NextWord(fStanza, textAt)) + break; } [fText release]; fText = [[NSString alloc] initWithUTF8String:text.c_str()];