From 34ee0929196bdff7332509e936bd9563e3498fc6 Mon Sep 17 00:00:00 2001 From: mschill Date: Mon, 9 Dec 2024 15:24:34 -0500 Subject: [PATCH] C2024-037 Enhanced Print Section so that it can now be utilized for Sections that contain subsections. Farley uses subsections in some of their AOP procedures. The "Print Section" feature did not work for these sections - instead returning a message as if the pdf was already open. --- PROMS/Volian.Print.Library/PromsPrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index bd55fe6f..90103d95 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -2953,7 +2953,7 @@ namespace Volian.Print.Library if (ii.Sections == null) return; // B2021-067 crash on null reference foreach (SectionInfo si in ii.Sections) { - if (MyPromsPrinter.PrtSectID == -1 || (MyPromsPrinter.PrtSectID > -1 && si.ItemID == MyPromsPrinter.PrtSectID)) + if (MyPromsPrinter.PrtSectID == -1 || (MyPromsPrinter.PrtSectID > -1 && (ii.ItemID == MyPromsPrinter.PrtSectID || si.ItemID == MyPromsPrinter.PrtSectID))) { if (si.IsStepSection) { -- 2.47.2