Trying to fix load of translation pair with time offset - thx darnn :)

Related to #3928
This commit is contained in:
Nikolaj Olsson 2020-01-20 08:28:32 +01:00
parent a5ba19496f
commit dc8329ef2b

View File

@ -2080,8 +2080,17 @@ namespace Nikse.SubtitleEdit.Forms
{
_subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
_changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName);
if (_subtitleAlternate != null && _subtitleAlternate.Paragraphs.Count > 0)
{
_subtitleAlternate.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
_changeAlternateSubtitleHash = _subtitleAlternate.GetFastHashCode(GetCurrentEncoding().BodyName);
SubtitleListview1.Fill(_subtitle, _subtitleAlternate);
}
else
{
SubtitleListview1.Fill(_subtitle);
}
}
GotoSubPosAndPause();
SubtitleListview1.EndUpdate();