[longomatch] Do not take in account not visible objects for the selection



commit 52e430566e2a5e30781c935203b4a350858707f9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Oct 8 21:52:24 2014 +0200

    Do not take in account not visible objects for the selection

 LongoMatch.Drawing/CanvasObjects/TimelineObject.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs 
b/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
index 0806295..3843f9a 100644
--- a/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
@@ -178,6 +178,9 @@ namespace LongoMatch.Drawing.CanvasObjects
                        if (point.Y >= OffsetY && point.Y < OffsetY + Height) {
                                foreach (TimeNodeObject po in nodes) {
                                        Selection tmp;
+                                       if (!po.Visible) {
+                                               continue;
+                                       }
                                        tmp = po.GetSelection (point, precision);
                                        if (tmp == null) {
                                                continue;


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