C2024-002-Print-Section

This commit is contained in:
Paul Larsen 2024-01-25 11:05:04 -05:00
parent 0095b2883b
commit d6cb841d46

View File

@ -1578,6 +1578,8 @@ namespace Volian.Print.Library
Volian.Base.Library.BaselineMetaFile.WriteLine("TOC Ystart {0} LeftMar {1} ScNmPos {2} ScTtlPos {3} ScPgPos {4}", yPageStart, leftMargin, secNumPos, secTitlePos, secPagePos); Volian.Base.Library.BaselineMetaFile.WriteLine("TOC Ystart {0} LeftMar {1} ScNmPos {2} ScTtlPos {3} ScPgPos {4}", yPageStart, leftMargin, secNumPos, secTitlePos, secPagePos);
bool inGroup = false; bool inGroup = false;
foreach (SectionInfo mySection in ii.Sections) foreach (SectionInfo mySection in ii.Sections)
{
if (PntSectID == -1 || (PntSectID > -1 && mySection.ItemID == PntSectID))
{ {
sectCnt++; sectCnt++;
SectionConfig sc = mySection.MyConfig as SectionConfig; SectionConfig sc = mySection.MyConfig as SectionConfig;
@ -1847,6 +1849,7 @@ namespace Volian.Print.Library
} }
} }
} }
}
return yLocation; return yLocation;
} }
// C2021-015: Barakah High Level Steps in Table of Contents // C2021-015: Barakah High Level Steps in Table of Contents
@ -2934,6 +2937,8 @@ namespace Volian.Print.Library
{ {
if (ii.Sections == null) return; // B2021-067 crash on null reference if (ii.Sections == null) return; // B2021-067 crash on null reference
foreach (SectionInfo si in ii.Sections) foreach (SectionInfo si in ii.Sections)
{
if (MyPromsPrinter.PntSectID == -1 || (MyPromsPrinter.PntSectID > -1 && si.ItemID == MyPromsPrinter.PntSectID))
{ {
if (si.IsStepSection) if (si.IsStepSection)
{ {
@ -2975,6 +2980,7 @@ namespace Volian.Print.Library
} }
} }
} }
//}
} }
} }
} }