fix for ColumnMode usage

This commit is contained in:
John Jenko 2010-06-04 19:25:40 +00:00
parent 1dcda26a99
commit 23ed5913db

View File

@ -699,7 +699,8 @@ namespace VEPROMS.CSLA.Library
SectionInfo si = SectionInfo.Get(ActiveSection.ItemID); //ActiveSection as SectionInfo;
if (si != null)
{
if (si.SectionConfig.Section_ColumnMode != SectionConfig.SectionColumnMode.Default)
// there is no longer a "default" ENUM item - SectionConfig will return format default if needed
//if (si.SectionConfig.Section_ColumnMode != SectionConfig.SectionColumnMode.Default)
return (int)si.SectionConfig.Section_ColumnMode - 1;
}
return (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.PMode ?? 2) -1;