Skip to content

Commit

Permalink
SVG fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Jun 9, 2018
1 parent f4ffdac commit 3bdc97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/FFImageLoading.Svg.Shared/SkSvg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ private void ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fi

foreach (var gElement in e.Elements())
{
using (var paint = fill.Clone())
using (var paint = fill?.Clone() ?? CreatePaint())
{
paint.BlendMode = SKBlendMode.SrcIn;
ReadElement(gElement, canvas, paint, paint);
Expand Down Expand Up @@ -521,7 +521,7 @@ private void ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fi
case "mask":
if (e.HasElements)
{
masks.Add(ReadId(e), new SKSvgMask(fill, e));
masks.Add(ReadId(e), new SKSvgMask(fill ?? CreatePaint(), e));
}
break;
case "defs":
Expand Down

0 comments on commit 3bdc97d

Please sign in to comment.