[BUG] Fix rare ArgumentOutOfRangeException TextBoxSearch_TextChanged (#327), version 1.2.7.0

This commit is contained in:
Markus Hofknecht 2022-02-13 20:54:46 +01:00
parent 411fc5ab07
commit cd508b7584
2 changed files with 3 additions and 3 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.6.5")] [assembly: AssemblyVersion("1.2.7.0")]
[assembly: AssemblyFileVersion("1.2.6.5")] [assembly: AssemblyFileVersion("1.2.7.0")]

View file

@ -886,7 +886,7 @@ namespace SystemTrayMenu.UserInterface
timerUpdateIcons.Start(); timerUpdateIcons.Start();
} }
if (isSearchStringEmpty) if (isSearchStringEmpty && dgv.Rows.Count > 0)
{ {
dgv.FirstDisplayedScrollingRowIndex = 0; dgv.FirstDisplayedScrollingRowIndex = 0;
} }