From 3261d63b1998efdd0a2b8cb4c2f2d2ae4bc2f826 Mon Sep 17 00:00:00 2001 From: mschill Date: Thu, 2 Oct 2025 08:02:33 -0400 Subject: [PATCH] =?UTF-8?q?C2025-037=20=E2=80=93=20Spell=20Check=20Closes?= =?UTF-8?q?=20after=20one=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Volian.Controls.Library/VlnSpellCheck.cs | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Controls.Library/VlnSpellCheck.cs b/PROMS/Volian.Controls.Library/VlnSpellCheck.cs index 00261916..e9a71054 100644 --- a/PROMS/Volian.Controls.Library/VlnSpellCheck.cs +++ b/PROMS/Volian.Controls.Library/VlnSpellCheck.cs @@ -27,10 +27,26 @@ namespace Volian.Controls.Library while (MyEditItem.SpellCheckNext()) { ItemInfo next = MyEditItem.MyItemInfo.SearchNext; - if (next == null || !next.IsStep) // B2016-063 check if next is not a step type instead of specifically a section - return; // spell check only current section - MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next); - } + //C2025-037 Evaluate the way that Spell Check (in step editor sections) is currently closing after one section. + + if (next == null || next.IsProcedure) // B2016-063 check if next is not a step type instead of specifically a section + { + return; // spell check only current procedure + } + + //If it is a word document, find the next non-word document + while (next.HasWordContent) + { + next = next.SearchNext; + + if (next == null || next.IsProcedure) // B2016-063 check if next is not a step type instead of specifically a section + { + return; // spell check only current procedure + } + } + + MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next); + } MyEditItem.SetFocus(); }