mirror of https://github.com/odrling/Aegisub
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
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue