Fix for bug 383935: Disappearing tool tip in time graph and other issues
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / Utils.java
index 7fb86d1a789ab28045c2a73139b98c85b6b94342..8d9e61866084be543b1661018578a69057bb192f 100644 (file)
@@ -473,7 +473,10 @@ public class Utils {
             }\r
             return null;\r
         } else if (n == 1) { //next\r
-            return nextEvent;\r
+            if (nextEvent != null && nextEvent.getTime() > time) {\r
+                return nextEvent;\r
+            }\r
+            return null;\r
         } else if (n == 2) { //current or previous when in empty space\r
             return currEvent;\r
         }\r
This page took 0.024266 seconds and 5 git commands to generate.