mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Trying to fix load of translation pair with time offset - thx darnn :)
Related to #3928
This commit is contained in:
parent
a5ba19496f
commit
dc8329ef2b
@ -2080,7 +2080,16 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
{
|
{
|
||||||
_subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
|
_subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
|
||||||
_changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName);
|
_changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName);
|
||||||
SubtitleListview1.Fill(_subtitle);
|
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();
|
GotoSubPosAndPause();
|
||||||
|
Loading…
Reference in New Issue
Block a user