Skip to content

Commit a605671

Browse files
SVG fix - null exception
1 parent da16815 commit a605671

File tree

1 file changed

+1
-1
lines changed
  • source/FFImageLoading.Svg.Shared

1 file changed

+1
-1
lines changed

source/FFImageLoading.Svg.Shared/SkSvg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ private void ReadPaints(Dictionary<string, string> style, ref SKPaint strokePain
991991
if (ColorHelper.TryParse(stroke, out SKColor color))
992992
{
993993
// preserve alpha
994-
if (color.Alpha == 255 && fillPaint.Color.Alpha > 0)
994+
if (color.Alpha == 255 && strokePaint.Color.Alpha > 0)
995995
strokePaint.Color = color.WithAlpha(strokePaint.Color.Alpha);
996996
else
997997
strokePaint.Color = color;

0 commit comments

Comments
 (0)