diff options
Diffstat (limited to 'src/Fill')
| -rw-r--r-- | src/Fill/Fill.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fill/Fill.cs b/src/Fill/Fill.cs index 322fa5ae..1f455419 100644 --- a/src/Fill/Fill.cs +++ b/src/Fill/Fill.cs @@ -22,7 +22,10 @@ namespace Crow return (SolidColor)SolidColor.Parse (s); } - + public static implicit operator Color(Fill c){ + SolidColor sc = c as SolidColor; + return sc == null ? default(Color) : sc.color; + } public static implicit operator Fill(Color c){ return new SolidColor (c); } |