B2026-084 Spell Check crashing #823

Merged
jjenko merged 2 commits from B2026-084 into Development 2026-10-01 10:09:40 -04:00
2 changed files with 19 additions and 2 deletions
@@ -3251,6 +3251,7 @@ namespace VEPROMS
_MyLog.WarnFormat("===============Override Close===================="); _MyLog.WarnFormat("===============Override Close====================");
} }
System.Threading.Thread.Sleep(500); //wait 1/2 a second to see if it closes on it's own
tc.CloseTabItem(dti); tc.CloseTabItem(dti);
} }
+17 -1
View File
@@ -3538,7 +3538,23 @@ namespace Volian.Controls.Library
// C2015-028 Add Editorial Mode to PROMS Step Editor // C2015-028 Add Editorial Mode to PROMS Step Editor
// if in Editorial Mode, treat it the same as if the EditorialSpellCheck flag is set in the Format file // if in Editorial Mode, treat it the same as if the EditorialSpellCheck flag is set in the Format file
bool editorialmode = (this.Parent.Parent.Parent as StepTabPanel).MyDisplayTabControl.IsInEditorialMode; bool editorialmode;
try
{
StepTabPanel pnl = null;
Control tempcntrl = Parent;
while (tempcntrl != null && pnl == null)
{
tempcntrl = tempcntrl.Parent;
pnl = tempcntrl as StepTabPanel;
}
editorialmode = pnl.MyDisplayTabControl.IsInEditorialMode;
}
catch
{
editorialmode = false;
}
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck || editorialmode) if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck || editorialmode)
DidEditorialSpellCheck = MySpellCheckDlg.DidCorrectSpelling; // B2015-024 spell checker in editoral mode DidEditorialSpellCheck = MySpellCheckDlg.DidCorrectSpelling; // B2015-024 spell checker in editoral mode