mirror of https://github.com/odrling/Aegisub
Fix wxString::Format assertion failure when opening subtitles from Matroska
Originally committed to SVN as r6714.
This commit is contained in:
parent
95344fdb7c
commit
35241bdbce
|
@ -108,7 +108,7 @@ static void read_subtitles(agi::ProgressSink *ps, MatroskaFile *file, MkvStdIO *
|
||||||
blockString.BeforeFirst(',', &afterOrder).ToLong(&order);
|
blockString.BeforeFirst(',', &afterOrder).ToLong(&order);
|
||||||
afterOrder.BeforeFirst(',', &afterLayer).ToLong(&layer);
|
afterOrder.BeforeFirst(',', &afterLayer).ToLong(&layer);
|
||||||
|
|
||||||
subList[order] = wxString::Format("Dialogue: %d,%s,%s,%s", layer, subStart.GetASSFormated(), subEnd.GetASSFormated(), afterLayer);
|
subList[order] = wxString::Format("Dialogue: %d,%s,%s,%s", (int)layer, subStart.GetASSFormated(), subEnd.GetASSFormated(), afterLayer);
|
||||||
}
|
}
|
||||||
// Process SRT
|
// Process SRT
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue