Code cleanup – removed unused format setting
B2018-079 Calvert pagination fix. Don’t need to count phone list length when calculating space on the page. Phone list is printed below the footer and defined page length.
This commit is contained in:
parent
11086a17a1
commit
89f046e792
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -152,8 +152,9 @@ namespace Volian.Print.Library
|
||||
// also consider if there is a phone list at the bottom of the page, add the amount of space the phone
|
||||
// list requires onto yEndMsg to make it easier to figure out pagination (include an extra line for the
|
||||
// horizonal line above the phone list.
|
||||
// B2018-079 - we don't need the phone list length in this case only the length of the end message because the phone list is printed below the footer but the end message is shifted up.
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.PrintPhoneList && MyPageHelper.PhoneListHeight != 0)
|
||||
yEndMsg += (MyPageHelper.PhoneListHeight - vlnPrintObject.SixLinesPerInch);
|
||||
yEndMsg += GetBottomContinueMessageSize(MyItemInfo.MyDocStyle);//(MyPageHelper.PhoneListHeight - vlnPrintObject.SixLinesPerInch);
|
||||
|
||||
// The following code is to fix a pagination issue in SHE. It was decided to not put it into development
|
||||
// because some of the pagination logic may be redesigned. Without this fix, some pages had a page break
|
||||
@ -888,8 +889,9 @@ namespace Volian.Print.Library
|
||||
break;
|
||||
}
|
||||
// also account for phonelist for locating bottom continue message:
|
||||
// B2018-079 - we don't need the phone list length in this case only the length of the end message plus a blank line because the phone list is printed below the footer but the end message is shifted up.
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.PrintPhoneList && MyPageHelper.PhoneListHeight != 0)
|
||||
myBottomMsgSpace += (MyPageHelper.PhoneListHeight - vlnPrintObject.SixLinesPerInch);
|
||||
myBottomMsgSpace += vlnPrintObject.SixLinesPerInch; //(MyPageHelper.PhoneListHeight - vlnPrintObject.SixLinesPerInch);
|
||||
|
||||
string myTopMsg = docstyle.Continue.Top.Message;
|
||||
float myTopMsgSpace = ((myTopMsg ?? "") != "") ? 2 * SixLinesPerInch : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user