added check for null MacroDef

additional checks for checkoffs and logic support or NSP script Cautions with bullets
fixed pagelist processing issue when pagelist row has more than one token
support for NSP script Cautions
fixed problem where the END message was not printing for NSP (the Y location was negative – off the page)
This commit is contained in:
jjenko committed 2011-12-07 14:04:53 +00:00
1 parent b48e39be12
commit f7cb594d76
5 files changed
+172 -70

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ namespace Volian.Print.Library
MyContentByte = cb;
System.Drawing.Color push = PrintOverride.SvgColor;
PrintOverride.SvgColor = PrintOverride.TextColor == System.Drawing.Color.Empty ? System.Drawing.Color.Black : PrintOverride.TextColor;
if (MyPageHelper != null && MyPageHelper.MySvg != null)
if (MyPageHelper != null && MyPageHelper.MySvg != null && MacroDef != null)
{
// PageList items are located with respect to the left margin, macros are not.
MyPageHelper.MySvg.DrawMacro(MacroDef, XOffset - MyPageHelper.MySvg.LeftMargin, yLocation, cb);