From 7473fb1af6e9567a95749c7401158fc2b3fa73be Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 30 Jun 2013 15:37:07 -0700 Subject: [PATCH] Fix issues with loading the video AR from subtitles Removing the first character from the non-custom case resulted in an error when the value was empty and resulted in nothing happening when a valid value was present. --- aegisub/src/frame_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index f9500959c..1747288af 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -626,7 +626,7 @@ void FrameMain::OnSubtitlesOpen() { } else { int ar = 0; - if (agi::util::try_parse(arString.substr(1), &ar) && ar >= 0 && ar < 4) + if (agi::util::try_parse(arString, &ar) && ar >= 0 && ar < 4) context->videoController->SetAspectRatio((AspectRatio)ar); }