Bug fix B2012-345 – program would sometimes crash when doing a spell check.

This commit is contained in:
John Jenko 2012-12-05 18:04:01 +00:00
parent 295bcdb4e0
commit 8d7072d3b7

View File

@ -27,7 +27,7 @@ namespace Volian.Controls.Library
while (MyEditItem.SpellCheckNext())
{
ItemInfo next = MyEditItem.MyItemInfo.SearchNext;
if (next.IsSection)
if (next == null || next.IsSection)
return; // spell check only current section
MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
}