From f4ac65a9f241cffaf1de4a5363e75bb837d03d48 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 28 May 2020 14:57:40 +0000 Subject: [PATCH] B2020-078 Pagination changed when using new logic. Code was changed to more properly use a sorted dictionary. An inadvertent change was made that included the maximum step level which should not have been included. This has been corrected. --- PROMS/Volian.Print.Library/Pagination.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {