From 13d366584643e8f0e8dfb2999d66397ffdca2427 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 1 Jul 2019 13:29:20 +0000 Subject: [PATCH] B2019-091: Crash when printing South Texas Eops --- PROMS/Volian.Print.Library/vlnRNOSeparator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnRNOSeparator.cs b/PROMS/Volian.Print.Library/vlnRNOSeparator.cs index a25c2c5d..db4ff3c9 100644 --- a/PROMS/Volian.Print.Library/vlnRNOSeparator.cs +++ b/PROMS/Volian.Print.Library/vlnRNOSeparator.cs @@ -33,6 +33,7 @@ namespace Volian.Print.Library /*if separator is a control-A use RNOSepLine*/ 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; YOffset = yoffset; XOffset = xoffset; @@ -55,7 +56,6 @@ namespace Volian.Print.Library } public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin) { - MyContentByte = cb; float yLocation = CalculateYOffset(yPageStart, yTopMargin); if (XLength != 0) {