Switch tag style when converting from ASSA to e.g. SRT - thx von Suppé :)

This commit is contained in:
niksedk 2021-09-22 17:09:07 +02:00
parent 22d038ce19
commit 061c8a39f8

View File

@ -4799,7 +4799,6 @@ namespace Nikse.SubtitleEdit.Forms
{ {
SetAssaResolutionWithChecks(); SetAssaResolutionWithChecks();
} }
} }
else else
{ {
@ -4818,6 +4817,14 @@ namespace Nikse.SubtitleEdit.Forms
_oldSubtitleFormat.RemoveNativeFormatting(_subtitle, format); _oldSubtitleFormat.RemoveNativeFormatting(_subtitle, format);
} }
if (formatType == typeof(AdvancedSubStationAlpha))
{
foreach (var p in _subtitle.Paragraphs)
{
p.Text = AdvancedSubStationAlpha.FormatText(p);
}
}
SaveSubtitleListviewIndices(); SaveSubtitleListviewIndices();
SubtitleListview1.Fill(_subtitle, _subtitleOriginal); SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
RestoreSubtitleListviewIndices(); RestoreSubtitleListviewIndices();
@ -4986,6 +4993,8 @@ namespace Nikse.SubtitleEdit.Forms
ShowHideTextBasedFeatures(format); ShowHideTextBasedFeatures(format);
UpdateToolbarButtonsToCurrentFormat(); UpdateToolbarButtonsToCurrentFormat();
_oldSubtitleFormat = format;
} }
private static List<string> GetNuendoStyles() private static List<string> GetNuendoStyles()