From 4e668096d331a54e39ca46c293700df05a5fc11a Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 30 Mar 2012 10:57:33 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/vlnMacro.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnMacro.cs b/PROMS/Volian.Print.Library/vlnMacro.cs index ef6a81b8..52c3aa3c 100644 --- a/PROMS/Volian.Print.Library/vlnMacro.cs +++ b/PROMS/Volian.Print.Library/vlnMacro.cs @@ -24,6 +24,7 @@ namespace Volian.Print.Library } public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin) { + cb.SaveState(); MyContentByte = cb; float yLocation = CalculateYOffset(yPageStart, yTopMargin); // Adjust the starting point for the Macro if the LPI is 7 @@ -41,6 +42,7 @@ namespace Volian.Print.Library } PrintOverride.SvgColor = push; if (textLayer != null) cb.EndLayer(); + cb.RestoreState(); return yPageStart; } }