Fix for visual sync start/end time validation - thx improck :)

Fix  #8652
This commit is contained in:
Nikolaj Olsson 2024-07-21 14:34:56 +02:00
parent 3deb067157
commit 82c650a9dd
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
* Fix crash in "Whisper Audio to text" if no audio - thx morrellaberdeen
* Fix running "Faster-Whisper-XXL" without "Faster-Whisper" - thx shanedk
* Fix crash in "Fix common errors" - thx Hardstylest
* Fix for visual sync start/end time validation - thx improck
4.0.7 (8th July 2024)

View File

@ -457,7 +457,7 @@ namespace Nikse.SubtitleEdit.Forms
double subEnd = _paragraphs[comboBoxEndTexts.SelectedIndex].StartTime.TotalMilliseconds / TimeCode.BaseUnit;
// Both end times must be greater than start time.
if (!(videoPlayerCurrentEndPos > videoPlayerCurrentStartPos && subEnd > videoPlayerCurrentStartPos) ||
if (!(videoPlayerCurrentEndPos > videoPlayerCurrentStartPos && subEnd > subStart) ||
comboBoxStartTexts.SelectedIndex >= comboBoxEndTexts.SelectedIndex)
{
MessageBox.Show(_language.StartSceneMustComeBeforeEndScene, "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);