mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Merge conditions
This commit is contained in:
parent
8f129c1434
commit
0baa1c1833
@ -626,9 +626,7 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
|
||||
public void SelectIndexAndEnsureVisible(int index, bool focus)
|
||||
{
|
||||
if (!IsValidIndex(index))
|
||||
return;
|
||||
if (TopItem == null)
|
||||
if (!IsValidIndex(index) || TopItem == null)
|
||||
return;
|
||||
|
||||
int bottomIndex = TopItem.Index + ((Height - 25) / 16);
|
||||
|
Loading…
Reference in New Issue
Block a user