Use ‘DocStyleListActive’ for section types

This commit is contained in:
2015-07-22 14:50:03 +00:00
parent 96f25e72e4
commit 238c92502f
2 changed files with 23 additions and 7 deletions

View File

@@ -174,7 +174,7 @@ namespace VEPROMS
bool isWordSect = true;
int sectype = (int)sectinfo.MyContent.Type - 10000;
PlantFormat pf = sectinfo.ActiveFormat.PlantFormat;
foreach (DocStyle ds in pf.DocStyles.DocStyleList)
foreach (DocStyle ds in pf.DocStyles.DocStyleListActive)
{
if (ds.Index == sectype)
{
@@ -505,7 +505,7 @@ namespace VEPROMS
if (pf != opf)
{
oldDocStyles = new DocStyleList(null);
foreach (DocStyle ds in opf.DocStyles.DocStyleList)
foreach (DocStyle ds in opf.DocStyles.DocStyleListActive)
{
if (_isStepSection && ds.IsStepSection)
oldDocStyles.Add(ds); // find only step section types
@@ -519,7 +519,7 @@ namespace VEPROMS
DocStyleList newDocStyles = new DocStyleList(null);
int selindx = -1;
foreach (DocStyle nds in pf.DocStyles.DocStyleList)
foreach (DocStyle nds in pf.DocStyles.DocStyleListActive)
{
if (_isStepSection && nds.IsStepSection)
newDocStyles.Add(nds); // add only step section types