mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +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)
|
public void SelectIndexAndEnsureVisible(int index, bool focus)
|
||||||
{
|
{
|
||||||
if (!IsValidIndex(index))
|
if (!IsValidIndex(index) || TopItem == null)
|
||||||
return;
|
|
||||||
if (TopItem == null)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int bottomIndex = TopItem.Index + ((Height - 25) / 16);
|
int bottomIndex = TopItem.Index + ((Height - 25) / 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user