B2012-350 added call to save the text before it processes a tab change
B2012-347 fixed problem with doing a find text after doing a spell check B2012-350 needed to add a count check for the list of tab items
This commit is contained in:
@@ -824,7 +824,7 @@ namespace Volian.Controls.Library
|
||||
// if doing the insert substep button, check for substeps already there and if so must match type.
|
||||
if (btn.Name == "btnInsSubstep")
|
||||
{
|
||||
if (MyItemInfo.Steps != null)
|
||||
if (MyItemInfo.Steps != null && MyItemInfo.Steps.Count > 0)
|
||||
{
|
||||
ItemInfo ichld = MyItemInfo.Steps[0];
|
||||
btn.Click -= new System.EventHandler(btnInsStep_Click);
|
||||
@@ -843,7 +843,7 @@ namespace Volian.Controls.Library
|
||||
bool addit = true;
|
||||
StepData sd = MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[sdr.Index];
|
||||
int hlsSubType = -1; // if on hls, use this to set default on substep menu to first child
|
||||
if (MyItemInfo.IsHigh && MyItemInfo.Steps != null)
|
||||
if (MyItemInfo.IsHigh && MyItemInfo.Steps != null && MyItemInfo.Steps.Count > 0)
|
||||
{
|
||||
hlsSubType = (int)MyItemInfo.Steps[0].MyContent.Type - 20000;
|
||||
}
|
||||
|
Reference in New Issue
Block a user