This commit is contained in:
2011-05-19 13:36:09 +00:00
parent 1d84dd29e3
commit 1b1e5668d1
4 changed files with 12 additions and 8 deletions

View File

@@ -35,7 +35,10 @@ namespace Volian.Print.Library
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)
MyPageHelper.MySvg.DrawMacro(MacroDef, XOffset, yLocation, cb);
{
// PageList items are located with respect to the left margin, macros are not.
MyPageHelper.MySvg.DrawMacro(MacroDef, XOffset - MyPageHelper.MySvg.LeftMargin, yLocation, cb);
}
PrintOverride.SvgColor = push;
if (textLayer != null) cb.EndLayer();
return yPageStart;