mirror of https://github.com/odrling/Aegisub
Fix crash on empty lines in karaoke mode
Originally committed to SVN as r6385.
This commit is contained in:
parent
9e3f280cda
commit
e258e8c25f
|
@ -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 New Issue