@@ -31,7 +31,6 @@ public class SKSvg
31
31
private readonly Dictionary < string , XElement > defs = new Dictionary < string , XElement > ( ) ;
32
32
private readonly Dictionary < string , SKSvgMask > masks = new Dictionary < string , SKSvgMask > ( ) ;
33
33
private readonly Dictionary < string , ISKSvgFill > fillDefs = new Dictionary < string , ISKSvgFill > ( ) ;
34
- private readonly Dictionary < string , ISKSvgFill > strokeFillDefs = new Dictionary < string , ISKSvgFill > ( ) ;
35
34
private readonly Dictionary < XElement , string > elementFills = new Dictionary < XElement , string > ( ) ;
36
35
private readonly Dictionary < XElement , string > strokeElementFills = new Dictionary < XElement , string > ( ) ;
37
36
private readonly XmlReaderSettings xmlReaderSettings = new XmlReaderSettings ( )
@@ -300,7 +299,7 @@ private void ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fi
300
299
}
301
300
302
301
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 ) )
304
303
{
305
304
var points = ReadElementXY ( e ) ;
306
305
var elementSize = ReadElementSize ( e ) ;
@@ -1181,11 +1180,11 @@ private void ReadPaints(Dictionary<string, string> style, ref SKPaint strokePain
1181
1180
switch ( defE . Name . LocalName . ToLower ( ) )
1182
1181
{
1183
1182
case "lineargradient" :
1184
- strokeFillDefs [ id ] = ReadLinearGradient ( defE ) ;
1183
+ fillDefs [ id ] = ReadLinearGradient ( defE ) ;
1185
1184
strokeFillId = id ;
1186
1185
break ;
1187
1186
case "radialgradient" :
1188
- strokeFillDefs [ id ] = ReadRadialGradient ( defE ) ;
1187
+ fillDefs [ id ] = ReadRadialGradient ( defE ) ;
1189
1188
strokeFillId = id ;
1190
1189
break ;
1191
1190
default :
0 commit comments