From 15c96e66b851ff353ed71756c7b5658699eeaa79 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 18 Mar 2016 13:11:42 +0000 Subject: [PATCH] B2016-072 check the section config for the column mode to determine the Insert Table sub-menus, ie whether or not to include AER and Centered submenu --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 3a1a67b2..c4010170 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1515,7 +1515,8 @@ namespace Volian.Controls.Library { // If there is only one 'table' type from format under the ribbon's table item, // eliminate that button and move up the RO & Text Table buttons. - if (btn.SubItems.Count == 1) // single column step editor + SectionConfig sc = (SectionConfig)MyItemInfo.ActiveSection.MyConfig; + if (sc.Section_ColumnMode == SectionConfig.SectionColumnMode.One) // single column step editor { // setup the sub menus for the insert table ribbon button btn.Tag = btn.SubItems[0].Tag;