Fix crash on empty lines in karaoke mode

Originally committed to SVN as r6385.
This commit is contained in:
Thomas Goyne 2012-01-27 20:04:31 +00:00
parent 9e3f280cda
commit e258e8c25f
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void AssKaraoke::SetLine(AssDialogue *line, bool auto_split) {
if (dynamic_cast<AssDialogueBlockPlain*>(block)) {
// treat comments as overrides rather than dialogue
if (text[0] == '{')
if (text.size() && text[0] == '{')
syl.ovr_tags[syl.text.size()] += text;
else
syl.text += text;