Try to fix ASSA RTL MPV issue - thx OmrSi :)

Fix #5315 + Fix #5316 (hopefully)
This commit is contained in:
niksedk 2021-09-05 19:46:49 +02:00
parent e6e1a50d3f
commit 17f7368176

View File

@ -469,14 +469,14 @@ namespace Nikse.SubtitleEdit.Controls
}
else
{
if (subtitle.Header == null || subtitle.Header.Contains("[V4 Styles]"))
{
subtitle = new Subtitle(subtitle, false);
subtitle.Header = AdvancedSubStationAlpha.GetHeaderAndStylesFromSubStationAlpha(subtitle.Header);
}
if (subtitle.Header == null || !subtitle.Header.Contains("[V4+ Styles]"))
{
if (subtitle.Header != null && subtitle.Header.Contains("[V4 Styles]"))
{
subtitle = new Subtitle(subtitle, false);
subtitle.Header = AdvancedSubStationAlpha.GetHeaderAndStylesFromSubStationAlpha(subtitle.Header);
}
var oldSub = subtitle;
subtitle = new Subtitle(subtitle);
if (TextBox.RightToLeft == RightToLeft.Yes && LanguageAutoDetect.CouldBeRightToLeftLanguage(subtitle))