From 35241bdbce7f69d0cf92beaf834cf2fdfad14417 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 22 Apr 2012 15:31:06 +0000 Subject: [PATCH] Fix wxString::Format assertion failure when opening subtitles from Matroska Originally committed to SVN as r6714. --- aegisub/src/mkv_wrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/mkv_wrap.cpp b/aegisub/src/mkv_wrap.cpp index 5bcdaedcd..e7927f76f 100644 --- a/aegisub/src/mkv_wrap.cpp +++ b/aegisub/src/mkv_wrap.cpp @@ -108,7 +108,7 @@ static void read_subtitles(agi::ProgressSink *ps, MatroskaFile *file, MkvStdIO * blockString.BeforeFirst(',', &afterOrder).ToLong(&order); 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 else {