[longomatch] Don't set selectiong in canvas objects directly



commit 2ce3112c2a1b90aaf334c2a11f50224e51c610b5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Jul 7 12:46:04 2014 +0200

    Don't set selectiong in canvas objects directly

 LongoMatch.Drawing/Canvas.cs                      |    3 ++-
 LongoMatch.Drawing/CanvasObject/TimelineObject.cs |    3 ---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Drawing/Canvas.cs b/LongoMatch.Drawing/Canvas.cs
index 105557b..d69bda2 100644
--- a/LongoMatch.Drawing/Canvas.cs
+++ b/LongoMatch.Drawing/Canvas.cs
@@ -171,7 +171,8 @@ namespace LongoMatch.Drawing
                {
                        Selection sel = null;
 
-                       /* Try with the selected item first */if (Selections.Count > 0) {
+                       /* Try with the selected item first */
+                       if (Selections.Count > 0) {
                                sel = Selections.LastOrDefault ().Drawable.GetSelection (coords, Accuracy);
                        }
                        if (sel == null) {
diff --git a/LongoMatch.Drawing/CanvasObject/TimelineObject.cs 
b/LongoMatch.Drawing/CanvasObject/TimelineObject.cs
index 4c79a95..c8ae890 100644
--- a/LongoMatch.Drawing/CanvasObject/TimelineObject.cs
+++ b/LongoMatch.Drawing/CanvasObject/TimelineObject.cs
@@ -130,9 +130,6 @@ namespace LongoMatch.Drawing.CanvasObject
                                        }
                                }
                        }
-                       if (selection != null) {
-                               (selection.Drawable as ICanvasSelectableObject).Selected = true;
-                       }
                        return selection;
                }
                


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