Fix crash on empty lines in karaoke mode
Originally committed to SVN as r6385.
This commit is contained in:
parent
9e3f280cda
commit
e258e8c25f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue