diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-24 12:46:43 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-24 12:46:43 +0100 |
| commit | d8acaa909ce73e150827db9846cd8690fb93d68e (patch) | |
| tree | c22aab77a5851aad79505a49dc6ac91ca4b0a106 /src/Fill/Fill.cs | |
| parent | e39ac936765e88382d858ee6922293315a18b60d (diff) | |
| parent | 1a4fe8bd37ed4a3e3324a134df4f90c14b315918 (diff) | |
Merge branch 'master' into CrowIDE
Diffstat (limited to 'src/Fill/Fill.cs')
| -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); } |