diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-05 00:37:10 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-05 00:37:10 +0100 |
| commit | 78592468fe75f09299e12d8a8fbb94635a2befd6 (patch) | |
| tree | 0b38ad59d17393e5ad44a3980962bc30e283225e /src/Gradient.cs | |
| parent | 9d381671ec0b1266448eddbf4c4935cdc7d23a9f (diff) | |
divers
Diffstat (limited to 'src/Gradient.cs')
| -rw-r--r-- | src/Gradient.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Gradient.cs b/src/Gradient.cs index 0806e885..2630c42a 100644 --- a/src/Gradient.cs +++ b/src/Gradient.cs @@ -96,8 +96,11 @@ namespace Crow throw new NotImplementedException (); } - foreach (ColorStop cs in Stops) + foreach (ColorStop cs in Stops) { + if (cs == null) + continue; grad.AddColorStop (cs.Offset, cs.Color); + } ctx.SetSource (grad); grad.Dispose (); |