C2017-028 Allow sup info off of a table when on an empty table cell

This commit is contained in:
John Jenko 2017-07-11 13:32:43 +00:00
parent 3e6c948285
commit f3f99b97ad

View File

@ -1026,7 +1026,9 @@ namespace Volian.Controls.Library
void btnInsStep_Click(object sender, EventArgs e)
{
if (_MyEditItem.MyStepRTB.Text == "" && !(_MyEditItem is ImageItem)) // Fix B2016-238 Fix B2017-139 account for image sub-steps
// Fix B2016-238 Fix B2017-139 account for image sub-steps
// C2017-028 don't display message if on a table (allow sup info off of a table)
if (_MyEditItem.MyStepRTB.Text == "" && !(_MyEditItem is ImageItem) && !(_MyEditItem is GridItem))
{
MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;