mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fix selecting, fix drag&drop
This commit is contained in:
parent
a669dec3cf
commit
fb2781909e
@ -22026,15 +22026,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
private void GoToTimeAndSelectPrecedingParagraph(double timeSeconds)
|
||||
{
|
||||
var index = 0;
|
||||
|
||||
// Select correct paragraph
|
||||
var index = _subtitle.Paragraphs.Count - 1;
|
||||
|
||||
for (int i = 0; i < _subtitle.Paragraphs.Count; i++)
|
||||
{
|
||||
if (_subtitle.Paragraphs[i].EndTime.TotalSeconds > timeSeconds)
|
||||
{
|
||||
index = i - 1;
|
||||
SelectListViewIndexAndEnsureVisible(index);
|
||||
index = i - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -22044,6 +22043,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
index = 0;
|
||||
}
|
||||
|
||||
SelectListViewIndexAndEnsureVisible(index);
|
||||
|
||||
// Seek in waveform
|
||||
if (mediaPlayer.VideoPlayer is null)
|
||||
{
|
||||
|
1
src/ui/Forms/VerifyCompleteness.Designer.cs
generated
1
src/ui/Forms/VerifyCompleteness.Designer.cs
generated
@ -166,6 +166,7 @@
|
||||
// subtitleListView
|
||||
//
|
||||
this.subtitleListView.AllowColumnReorder = true;
|
||||
this.subtitleListView.AllowDrop = true;
|
||||
this.subtitleListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
|
Loading…
Reference in New Issue
Block a user