B2018-126 & B2018-133: Issues with library document usages

This commit is contained in:
2018-10-02 13:00:22 +00:00
parent d5514caf4c
commit b0b15cff0b
4 changed files with 23 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ namespace Volian.Controls.Library
{
if (_SelectedLibDoc >= 0)
{
if (listBoxLibDocs.Items.Count==0 || _SelectedLibDoc > listBoxLibDocs.Items.Count) return; // B2018-126: if no items in list return also (count==0)
if (_SelectedLibDoc > listBoxLibDocs.Items.Count) return;
listBoxLibDocs.SelectedIndex = _SelectedLibDoc;
}