B2016-063 spell checker will now always stop at the end of a step section

This commit is contained in:
John Jenko 2018-09-06 19:34:58 +00:00
parent fafaf62b6d
commit 19598fad87

View File

@ -27,7 +27,7 @@ namespace Volian.Controls.Library
while (MyEditItem.SpellCheckNext())
{
ItemInfo next = MyEditItem.MyItemInfo.SearchNext;
if (next == null || next.IsSection)
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);
}