From e258e8c25fc5dc2b1b5ad4bc372f22facf630a83 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 27 Jan 2012 20:04:31 +0000 Subject: [PATCH] Fix crash on empty lines in karaoke mode Originally committed to SVN as r6385. --- aegisub/src/ass_karaoke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/ass_karaoke.cpp b/aegisub/src/ass_karaoke.cpp index 2d987da46..3439a4441 100644 --- a/aegisub/src/ass_karaoke.cpp +++ b/aegisub/src/ass_karaoke.cpp @@ -75,7 +75,7 @@ void AssKaraoke::SetLine(AssDialogue *line, bool auto_split) { if (dynamic_cast(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;