diff --git a/src/ui/Controls/VideoPlayerContainer.cs b/src/ui/Controls/VideoPlayerContainer.cs index b11c352d9..0920f5f8e 100644 --- a/src/ui/Controls/VideoPlayerContainer.cs +++ b/src/ui/Controls/VideoPlayerContainer.cs @@ -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))