From 9b7c30e1cd9fe191df596c1f79582bab8087f06f Mon Sep 17 00:00:00 2001 From: John Jenko Date: Wed, 15 Apr 2026 11:28:21 -0400 Subject: [PATCH] C2026-033 Added logic to not display the Empty Procedure message box if we are printing via baseline print testing. --- PROMS/Volian.Print.Library/PromsPrinter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index de678a4b..dcd0572a 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -960,7 +960,9 @@ namespace Volian.Print.Library OnStatusChanged("After NewPage", PromsPrinterStatusType.NewPage); if (myProcedure.Sections == null) { - MessageBox.Show("This procedure has no content and will not be printed.", "Empty Procedure", MessageBoxButtons.OK, MessageBoxIcon.Information); + // C2026-033 if we are running baselines, don't display the empty procedure message box, instead continue on as if OK was pressed. + if (!BaselineTesting) + MessageBox.Show("This procedure has no content and will not be printed.", "Empty Procedure", MessageBoxButtons.OK, MessageBoxIcon.Information); ProfileTimer.Pop(profileDepth); // B2024-062 Added check for EmptyProcedure. This is to prevent the Try Again message // from appearing after the user clicks on the OK button from the Empty Procedure message