bug fix B2012-328, fixed an index out of range problem when adding a new folder in the tree view
This commit is contained in:
parent
61fcf17624
commit
9922a676a6
@ -179,7 +179,10 @@ namespace VEPROMS.CSLA.Library
|
||||
retval = (SortedChildFolders[index - 1].ManualOrder + SortedChildFolders[index].ManualOrder) / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (index >= SortedChildFolders.Count) index = SortedChildFolders.Count;
|
||||
retval += SortedChildFolders[index - 1].ManualOrder;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user