B2019-091: Crash when printing South Texas Eops
This commit is contained in:
parent
02b29e928e
commit
13d3665846
@ -33,6 +33,7 @@ namespace Volian.Print.Library
|
|||||||
/*if separator is a control-A use RNOSepLine*/
|
/*if separator is a control-A use RNOSepLine*/
|
||||||
public vlnRNOSeparator(vlnParagraph parent, PdfContentByte cb, string sepStr, float xoffset, float yoffset, FormatInfo formatInfo, bool extendChangeBar)
|
public vlnRNOSeparator(vlnParagraph parent, PdfContentByte cb, string sepStr, float xoffset, float yoffset, FormatInfo formatInfo, bool extendChangeBar)
|
||||||
{
|
{
|
||||||
|
MyContentByte = cb; // B2019-091: crash when printing (note moved from the 'ToPdf' method)
|
||||||
ExtendChangeBar = formatInfo.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeBarToRNOSep ? extendChangeBar : false;
|
ExtendChangeBar = formatInfo.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeBarToRNOSep ? extendChangeBar : false;
|
||||||
YOffset = yoffset;
|
YOffset = yoffset;
|
||||||
XOffset = xoffset;
|
XOffset = xoffset;
|
||||||
@ -55,7 +56,6 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
|
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
|
||||||
{
|
{
|
||||||
MyContentByte = cb;
|
|
||||||
float yLocation = CalculateYOffset(yPageStart, yTopMargin);
|
float yLocation = CalculateYOffset(yPageStart, yTopMargin);
|
||||||
if (XLength != 0)
|
if (XLength != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user