[longomatch] Fix Gdk.Color Serialization/Deserialization



commit 8dc5b352381e0f3d3202e4331b29f6dc78405d7c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Dec 23 22:17:26 2009 +0100

    Fix Gdk.Color Serialization/Deserialization

 LongoMatch/Time/SectionsTimeNode.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Time/SectionsTimeNode.cs b/LongoMatch/Time/SectionsTimeNode.cs
index 553404a..78b243d 100644
--- a/LongoMatch/Time/SectionsTimeNode.cs
+++ b/LongoMatch/Time/SectionsTimeNode.cs
@@ -70,7 +70,7 @@ namespace LongoMatch.TimeNodes
 			Color c = new Color();
 			c.Red = (ushort)info.GetValue("red", typeof(ushort));
 			c.Green = (ushort)info.GetValue("green", typeof(ushort));
-			c.Red = (ushort)info.GetValue("blue", typeof(ushort));
+			c.Blue = (ushort)info.GetValue("blue", typeof(ushort));
 			Color = c;
 		}
 		#endregion
@@ -107,8 +107,8 @@ namespace LongoMatch.TimeNodes
 			info.AddValue("stop", Stop);
 			info.AddValue("hotkey", hotkey);
 			info.AddValue("red", color.Red);
-			info.AddValue("blue", color.Green);
-			info.AddValue("green", color.Blue);
+			info.AddValue("green", color.Green);
+			info.AddValue("blue", color.Blue);
 		}
 		#endregion		
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]