/*****************************************************************************
- * Copyright (c) 2007, 2008 Intel Corporation, 2009, 2012 Ericsson.
+ * Copyright (c) 2007, 2013 Intel Corporation, Ericsson
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* Ruslan A. Scherbakov, Intel - Initial API and implementation
* Alvaro Sanchez-Leon - Udpated for TMF
* Patrick Tasse - Refactoring
- *
*****************************************************************************/
package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets;
break;
}
- if (currEvent == null || currEvent.getTime() != nextStartTime) {
+ if (currEvent == null || currEvent.getTime() != nextStartTime ||
+ (nextStartTime != time && currEvent.getDuration() != nextEvent.getDuration())) {
prevEvent = currEvent;
currEvent = nextEvent;
}