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.
This commit is contained in:
Thomas Goyne 2013-06-30 15:37:07 -07:00
parent 96d7912d0b
commit 7473fb1af6

View file

@ -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);
}