[longomatch] Fix setting the keyframe drawing



commit ec7a3a2b0fcaebfba423d478fa048418108d069c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Oct 6 20:13:32 2012 +0200

    Fix setting the keyframe drawing

 LongoMatch.Core/Store/Play.cs            |    2 ++
 LongoMatch.GUI/Gui/Dialog/DrawingTool.cs |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Play.cs b/LongoMatch.Core/Store/Play.cs
index 0e09b9c..adc725d 100644
--- a/LongoMatch.Core/Store/Play.cs
+++ b/LongoMatch.Core/Store/Play.cs
@@ -131,6 +131,8 @@ namespace LongoMatch.Store
 					return Drawings.First();
 				else
 					return null;
+			} set {
+				Drawings[0] = value;
 			}
 		}
 
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 8ef0d6d..ee129a6 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -121,7 +121,7 @@ namespace LongoMatch.Gui.Dialog
 			string tempFile = System.IO.Path.GetTempFileName();
 			drawingwidget1.SaveDrawings(tempFile);
 			Pixbuf frame = new Pixbuf(tempFile);
-			play.Drawings.Add(new Drawing { Pixbuf= new Image(frame), RenderTime = stopTime});
+			play.KeyFrameDrawing = new Drawing { Pixbuf= new Image(frame), RenderTime = stopTime};
 			drawingwidget1.SaveAll(tempFile);
 			frame.Dispose();
 			play.Miniature = new Image(new Pixbuf(tempFile));



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