Fix context location after first event seek.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfTmfTrace.java
index dcf21ed4dfc6e6600c0ff57ff94a69f637501536..e1b4ae0fec9a4d66af2e2d9205e5fde92c672446 100644 (file)
@@ -214,6 +214,12 @@ public class CtfTmfTrace extends TmfTrace implements ITmfEventParser{
             currentLocation.setLocation(getEndTime().getValue() + 1, 0L);
         }
         context.setLocation(currentLocation);
+        if (location == null) {
+            CtfTmfEvent event = getIterator(this, context).getCurrentEvent();
+            if (event != null) {
+                currentLocation.setLocation(event.getTimestampValue(), 0);
+            }
+        }
         if(context.getRank() != 0) {
             context.setRank(ITmfContext.UNKNOWN_RANK);
         }
This page took 0.023618 seconds and 5 git commands to generate.