From 2e00942b45ffd16493ff7d190b17f8fae337b25b Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Fri, 1 Dec 2023 17:31:15 +0100 Subject: [PATCH] Fix ass_dialogue parsing after refactor --- src/ass_dialogue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ass_dialogue.cpp b/src/ass_dialogue.cpp index 50c618d933..490d352866 100644 --- a/src/ass_dialogue.cpp +++ b/src/ass_dialogue.cpp @@ -113,7 +113,7 @@ void AssDialogue::Parse(std::string const& raw) { margin = mid(-9999, boost::lexical_cast(tkn.next_tok()), 99999); Effect = tkn.next_str_trim(); - std::string text{tkn.next_tok()}; + std::string text{tkn.next_tok().begin(), str.end()}; if (text.size() > 1 && text[0] == '{' && text[1] == '=') { static const boost::regex extradata_test("^\\{(=\\d+)+\\}");