mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Switch tag style when converting from ASSA to e.g. SRT - thx von Suppé :)
This commit is contained in:
parent
22d038ce19
commit
061c8a39f8
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user