mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 19:52:48 +01:00
Minor fix for waveform - don't move if no space to move whole line
This commit is contained in:
parent
5c66f593fb
commit
70ce74e57f
@ -1298,6 +1298,16 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
_mouseDownParagraph.StartTime.TotalMilliseconds = _wholeParagraphMinMilliseconds + 1;
|
||||
_mouseDownParagraph.EndTime.TotalMilliseconds = _mouseDownParagraph.StartTime.TotalMilliseconds + durationMilliseconds;
|
||||
}
|
||||
|
||||
if (PreventOverlap &&
|
||||
(_mouseDownParagraph.StartTime.TotalMilliseconds <= _wholeParagraphMinMilliseconds ||
|
||||
_mouseDownParagraph.EndTime.TotalMilliseconds >= _wholeParagraphMaxMilliseconds))
|
||||
{
|
||||
_mouseDownParagraph.StartTime.TotalMilliseconds = oldStart;
|
||||
_mouseDownParagraph.EndTime.TotalMilliseconds = oldStart + durationMilliseconds;
|
||||
return;
|
||||
}
|
||||
|
||||
OnTimeChanged?.Invoke(this, new ParagraphEventArgs(seconds, _mouseDownParagraph, _oldParagraph, _mouseDownParagraphType) { AdjustMs = _mouseDownParagraph.StartTime.TotalMilliseconds - oldStart });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user