Logic to not print end message on single column sections
This commit is contained in:
@@ -1063,8 +1063,11 @@ namespace Volian.Print.Library
|
||||
if (MyItemInfo.IsHigh && MyItemInfo.NextItem == null) // last hls, add the 'end' message, if there is one
|
||||
{
|
||||
DocStyle docstyle = MyItemInfo.MyDocStyle;
|
||||
// if the EndForSingle format flag is set to false, then we do not print an End message if the section
|
||||
// is a single column section.
|
||||
bool _skipEndMessage = MyPageHelper.MySection.SectionConfig.Section_ColumnMode == SectionConfig.SectionColumnMode.One && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.EndForSingle;
|
||||
string myMsg = (docstyle.End == null) ? null : docstyle.End.FixedMessage;
|
||||
if (myMsg != null)
|
||||
if (myMsg != null && !_skipEndMessage)
|
||||
{
|
||||
// If the flag is 0 or 1, just put the end message out right below this vlnParagraph:
|
||||
float msg_yLocation = CalculateYLocation(yPageStart - YBottomMost, yTopMargin);
|
||||
|
Reference in New Issue
Block a user