aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Colors.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-14 12:33:40 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-14 12:33:40 +0100
commit2c8ebf731af0a626c5d684efc5c2853edd8c3c2d (patch)
tree8beeb9d4f53183db21614f0dddc16859d246c339 /src/Colors.cs
parentfda39ed7506551ab48dce271cb2d5e9c63f2b00c (diff)
dragndrop of GObjs
Diffstat (limited to 'src/Colors.cs')
-rw-r--r--src/Colors.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Colors.cs b/src/Colors.cs
index 6bc380cc..0b1b3ad7 100644
--- a/src/Colors.cs
+++ b/src/Colors.cs
@@ -110,6 +110,8 @@ namespace Crow
cc.B = int.Parse (s.Substring (5, 2), System.Globalization.NumberStyles.HexNumber) / 255.0;
if (s.Length > 7)
cc.A = int.Parse (s.Substring (7, 2), System.Globalization.NumberStyles.HexNumber) / 255.0;
+ else
+ cc.A = 1.0;
return cc;
}