B2016-238: Don’t allow insert of step from step with no text

This commit is contained in:
Kathy Ruffing 2017-01-27 15:36:49 +00:00
parent fddcb8d13f
commit 07fd4990df

View File

@ -952,6 +952,11 @@ namespace Volian.Controls.Library
void btnInsStep_Click(object sender, EventArgs e)
{
if (_MyEditItem.MyStepRTB.Text == "") // Fix B2016-238
{
MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
string cautNoteOrder = _MyEditItem.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.CautionNoteOrder;
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
if (b.Tag == null) return;