C2015-028 Add Editorial Mode to PROMS Step Editor
This commit is contained in:
@@ -3760,7 +3760,12 @@ namespace Volian.Controls.Library
|
||||
public bool SpellCheckNext()
|
||||
{
|
||||
int nBad = C1SpellChecker2.CheckControl(this, false, MySpellCheckDlg);
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck)
|
||||
|
||||
// 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
|
||||
bool editorialmode = (this.Parent.Parent.Parent as StepTabPanel).MyDisplayTabControl.IsInEditorialMode;
|
||||
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck || editorialmode)
|
||||
DidEditorialSpellCheck = MySpellCheckDlg.DidCorrectSpelling; // B2015-024 spell checker in editoral mode
|
||||
return (nBad >= 0); // nBad = -1 means user pressed Cancel button
|
||||
}
|
||||
|
Reference in New Issue
Block a user