X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.ui%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Fwidgets%2Ftimegraph%2Fmodel%2FTimeGraphEntry.java;h=8f36276a5ef45b8f47e970872b4e649b308b8abc;hb=9597a3b53931e8e6ade3c8d59534a8918a0d25e8;hp=4ddb9a1d04866bd2ba29a894cf3d31bcf39520fb;hpb=516a0f0f213544918ace0b0b80b224c215abf95d;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/model/TimeGraphEntry.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/model/TimeGraphEntry.java index 4ddb9a1d04..8f36276a5e 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/model/TimeGraphEntry.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/model/TimeGraphEntry.java @@ -221,6 +221,8 @@ public class TimeGraphEntry implements ITimeGraphEntry { * starts at the same time as the event to add, it is replaced by the new * event. If the new event starts before the zoomed event list's last event, * the new event is ignored and is assumed to be already part of the list. + * If the new event starts before the zoomed event list's first event, the + * list is assumed to be incomplete and is cleared, and the event is added. * * @param event * The time event to add @@ -235,6 +237,9 @@ public class TimeGraphEntry implements ITimeGraphEntry { fZoomedEventList.add(event); } else if (start == lastStart) { fZoomedEventList.set(lastIndex, event); + } else if (start < fZoomedEventList.get(0).getTime()) { + fZoomedEventList.clear(); + fZoomedEventList.add(event); } if (event instanceof NullTimeEvent) { /* A NullTimeEvent should not affect the entry bounds */