diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 96eac9d7..3fa526db 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1646,11 +1646,14 @@ namespace Volian.Print.Library while (!tmp.MyItemInfo.IsRNOPart) tmp = tmp.MyParent; if (tmp.MyItemInfo.RNOs != null && tmp.MyItemInfo.RNOs.Count > 0) { - // B2020-077 This was changed from a standard for loop using myList.Count since there can be + int maxLevel = 1; + foreach (int lev in myList.Keys) // B2020-078 Don't include the highest step level + maxLevel = Math.Max(lev, maxLevel); + // B2020-077 This was changed from a standard for loop (for int i = 0 to myList.Count) since there can be // gaps in the list of step levels. foreach (int lev in myList.Keys) // loop thru the other step levels { - if (lev > stepLevel) + if (lev > stepLevel && lev < maxLevel)// B2020-078 Don't include the highest step level { foreach (float yLocation in myList[lev].Keys) // loop thru yLocation from pagination list {