Skip to content

Commit 3de62ee

Browse files
committed
Allow XGraphics._render defining code into .net5.0
1 parent 2fa789e commit 3de62ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PdfSharpCore/Drawing/XGraphics.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ public sealed class XGraphics : IDisposable
516516
_gsStack = new GraphicsStateStack(this);
517517
#if CORE
518518
TargetContext = XGraphicTargetContext.CORE;
519+
#endif
520+
#if CORE || NET5_0
519521
_drawGraphics = false;
520522
if (form.Owner != null)
521523
_renderer = new XGraphicsPdfRenderer(form, this);

0 commit comments

Comments
 (0)