@@ -31,7 +31,6 @@ public class SKSvg
3131 private readonly Dictionary < string , XElement > defs = new Dictionary < string , XElement > ( ) ;
3232 private readonly Dictionary < string , SKSvgMask > masks = new Dictionary < string , SKSvgMask > ( ) ;
3333 private readonly Dictionary < string , ISKSvgFill > fillDefs = new Dictionary < string , ISKSvgFill > ( ) ;
34- private readonly Dictionary < string , ISKSvgFill > strokeFillDefs = new Dictionary < string , ISKSvgFill > ( ) ;
3534 private readonly Dictionary < XElement , string > elementFills = new Dictionary < XElement , string > ( ) ;
3635 private readonly Dictionary < XElement , string > strokeElementFills = new Dictionary < XElement , string > ( ) ;
3736 private readonly XmlReaderSettings xmlReaderSettings = new XmlReaderSettings ( )
@@ -300,7 +299,7 @@ private void ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fi
300299 }
301300
302301 if ( stroke != null && strokeElementFills . TryGetValue ( e ,
303- out var strokeFillId ) && strokeFillDefs . TryGetValue ( strokeFillId , out var addStrokeFill ) )
302+ out var strokeFillId ) && fillDefs . TryGetValue ( strokeFillId , out var addStrokeFill ) )
304303 {
305304 var points = ReadElementXY ( e ) ;
306305 var elementSize = ReadElementSize ( e ) ;
@@ -1181,11 +1180,11 @@ private void ReadPaints(Dictionary<string, string> style, ref SKPaint strokePain
11811180 switch ( defE . Name . LocalName . ToLower ( ) )
11821181 {
11831182 case "lineargradient" :
1184- strokeFillDefs [ id ] = ReadLinearGradient ( defE ) ;
1183+ fillDefs [ id ] = ReadLinearGradient ( defE ) ;
11851184 strokeFillId = id ;
11861185 break ;
11871186 case "radialgradient" :
1188- strokeFillDefs [ id ] = ReadRadialGradient ( defE ) ;
1187+ fillDefs [ id ] = ReadRadialGradient ( defE ) ;
11891188 strokeFillId = id ;
11901189 break ;
11911190 default :
0 commit comments