[longomatch] Fix deletion of events with position tags



commit 9426afe9f283fdf918ebea6caebd26da46c4fc2f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Oct 5 15:49:36 2014 +0200

    Fix deletion of events with position tags

 LongoMatch.Drawing/Widgets/PositionTagger.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/PositionTagger.cs b/LongoMatch.Drawing/Widgets/PositionTagger.cs
index 116678a..49f7b50 100644
--- a/LongoMatch.Drawing/Widgets/PositionTagger.cs
+++ b/LongoMatch.Drawing/Widgets/PositionTagger.cs
@@ -128,7 +128,7 @@ namespace LongoMatch.Drawing.Widgets
                {
                        List<ICanvasObject> objects;
 
-                       foreach (ICanvasObject co in Objects.Where (o => plays.Contains ((o as 
PositionObject).Play))) {
+                       foreach (ICanvasObject co in Objects.Where (o => plays.Contains ((o as 
PositionObject).Play)).ToList()) {
                                RemoveObject (co);
                        }
                }


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