Skip to content

Commit 33a051b

Browse files
authored
Merge pull request ststeiger#55 from HakanL/master
ststeiger#54 Added PORTABLE to some checks for path drawing
2 parents 1315ff2 + c052fd1 commit 33a051b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PdfSharpCore/Drawing.Pdf/PdfGraphicsState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ void RealizeClipPath(XGraphicsPath clipPath)
520520
#endif
521521
_renderer.BeginGraphicMode();
522522
RealizeCtm();
523-
#if CORE || __IOS__ || __ANDROID__
523+
#if CORE || __IOS__ || __ANDROID__ || PORTABLE
524524
_renderer.AppendPath(clipPath._corePath);
525525
#endif
526526
#if GDI && !WPF

PdfSharpCore/Drawing.Pdf/XGraphicsPdfRenderer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public void DrawPath(XPen pen, XBrush brush, XGraphicsPath path)
392392
if (pen == null && brush == null)
393393
throw new ArgumentNullException("pen");
394394

395-
#if CORE
395+
#if CORE || PORTABLE
396396
Realize(pen, brush);
397397
AppendPath(path._corePath);
398398
AppendStrokeFill(pen, brush, path.FillMode, false);
@@ -1228,7 +1228,7 @@ internal void AppendPath(GraphicsPath path)
12281228
}
12291229
#endif
12301230

1231-
#if CORE || __IOS__ || __ANDROID__
1231+
#if CORE || __IOS__ || __ANDROID__ || PORTABLE
12321232
/// <summary>
12331233
/// Appends the content of a GraphicsPath object.
12341234
/// </summary>
@@ -1340,7 +1340,7 @@ internal void AppendPath(GraphicsPath path)
13401340
}
13411341
#endif
13421342

1343-
#if CORE || GDI || __IOS__ || __ANDROID__
1343+
#if CORE || GDI || __IOS__ || __ANDROID__ || PORTABLE
13441344
void AppendPath(XPoint[] points, Byte[] types)
13451345
{
13461346
const string format = Config.SignificantFigures4;

0 commit comments

Comments
 (0)