Verify that an RO Table or Text Table can be added for an RNO.

This commit is contained in:
Rich 2016-08-09 20:04:59 +00:00
parent 1a52a4d79e
commit d6e23d63d1

View File

@ -1672,7 +1672,9 @@ namespace Volian.Controls.Library
// the '&&' in if check because when in the calvertconditionresponse table, the section is in 'single column' mode even though // the '&&' in if check because when in the calvertconditionresponse table, the section is in 'single column' mode even though
// the condition response table is dual column. This fixes B2014-105. // the condition response table is dual column. This fixes B2014-105.
SectionConfig sc = (SectionConfig)MyItemInfo.ActiveSection.MyConfig; SectionConfig sc = (SectionConfig)MyItemInfo.ActiveSection.MyConfig;
if (sc.Section_ColumnMode == SectionConfig.SectionColumnMode.One && (!MyItemInfo.IsInCalvertConditionResponse || MyItemInfo.IsInRNO)) // single column step editor // One Column Mode or Two Column Mode in the RNO Column
if ((sc.Section_ColumnMode == SectionConfig.SectionColumnMode.One && (!MyItemInfo.IsInCalvertConditionResponse || MyItemInfo.IsInRNO))
|| (sc.Section_ColumnMode == SectionConfig.SectionColumnMode.Two && MyItemInfo.IsInRNO)) // single column step editor
{ {
// setup the sub menus for the insert table ribbon button // setup the sub menus for the insert table ribbon button
btn.Tag = btn.SubItems[0].Tag; btn.Tag = btn.SubItems[0].Tag;