Use memory data rather than database for finding next item (fixes problem where next item is not ‘applicable’ for procedure being printed

Add support for Point Beach asterisk boxes (and the boxes bold font)
This commit is contained in:
Kathy committed 2014-02-24 17:36:23 +00:00
1 parent 154dbeabb8
commit 9689726c43
2 files changed
+44 -11

No files matched your search

+5 -4
View File
@@ -851,14 +851,15 @@ namespace Volian.Print.Library
else if(!myItemInfo.MyDocStyle.OptionalSectionContent)
PrintTextMessage(cb, "No Section Content", _TextLayer);
SectionConfig.SectionPagination sp = SectionConfig.SectionPagination.Separate; // always the default
if ( section.NextItemCount > 0)
ItemInfo nxtItem = section.GetNextItem();
if (nxtItem != null)
{
SectionInfo tmpii = SectionInfo.Get(section.NextItem.ItemID);
// if this section & the next section are not accessory pages, see if there is continuous pagination,
// i.e. no page break between them.
if (section.IsStepSection && tmpii.IsStepSection)
if (section.IsStepSection && nxtItem.IsStepSection)
{
SectionConfig sc = tmpii.SectionConfig;
SectionInfo si = nxtItem as SectionInfo;
SectionConfig sc = si.SectionConfig;
try
{
if (sc != null) sp = sc.Section_Pagination;