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:
parent
96d7912d0b
commit
7473fb1af6
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ void FrameMain::OnSubtitlesOpen() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int ar = 0;
|
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);
|
context->videoController->SetAspectRatio((AspectRatio)ar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue