Added code to apply selected applicability when expanding steps while steps are being setup in SetupEditItem method
Added additonal condition to check for null value for section steps when no steps exist due to applicability settings
This commit is contained in:
@@ -385,7 +385,7 @@ namespace Volian.Print.Library
|
||||
LastFmtName = mySection.ActiveFormat.Name;
|
||||
string hlsText = "";
|
||||
int hlsItemId = 0;
|
||||
if (mySection.IsStepSection && mySection.Steps.Count > 0)
|
||||
if (mySection.IsStepSection && mySection.Steps != null && mySection.Steps.Count > 0)
|
||||
{
|
||||
hlsItemId = mySection.Steps[0].ItemID;
|
||||
hlsText = mySection.Steps[0].DisplayText; // save the High level step text for use in the page list
|
||||
@@ -778,10 +778,10 @@ namespace Volian.Print.Library
|
||||
vlnParagraph myParagraph = new vlnParagraph(null, cb, myItemInfo, (float)myItemInfo.MyDocStyle.Layout.LeftMargin, _NoBreakYOffset, 0, myItemInfo.ColumnMode, myItemInfo.ActiveFormat, null, null);
|
||||
float localYPageStart = 0;
|
||||
float yPageStart = yTopMargin;
|
||||
if (myItemInfo.HasChildren)
|
||||
if (myItemInfo.HasChildren || myItemInfo.MyDocVersion.DocVersionConfig.SelectedSlave > 0)
|
||||
localYPageStart = myParagraph.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
else if(!myItemInfo.MyDocStyle.OptionalSectionContent)
|
||||
PrintTextMessage(cb, "No Section Content", _TextLayer);
|
||||
PrintTextMessage(cb, "No Section Content", _TextLayer);
|
||||
SectionConfig.SectionPagination sp = SectionConfig.SectionPagination.Separate; // always the default
|
||||
if ( section.NextItemCount > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user