B2017-039 Allow insert of High Level Step and substep while on an embedded image sub-step.

This commit is contained in:
John Jenko 2017-03-08 19:50:13 +00:00
parent 36ed82ba43
commit 41bc492517

View File

@ -952,7 +952,7 @@ namespace Volian.Controls.Library
void btnInsStep_Click(object sender, EventArgs e) void btnInsStep_Click(object sender, EventArgs e)
{ {
if (_MyEditItem.MyStepRTB.Text == "") // Fix B2016-238 if (_MyEditItem.MyStepRTB.Text == "" && !(_MyEditItem is ImageItem)) // Fix B2016-238 Fix B2017-139 account for image sub-steps
{ {
MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; return;