When calculating the default bounds from time graph entries, if none of
the entries have time events, the bounds should be set to SWT.DEFAULT.
Change-Id: I5973319c66e3e31059304e628f9bd416a593b326
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/75354
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
for (ITimeGraphEntry entry : entries) {
setTimeRange(entry);
}
+ if (fTime0Bound > fTime1Bound) {
+ fTime0Bound = SWT.DEFAULT;
+ fTime1Bound = SWT.DEFAULT;
+ }
}
private void setTimeRange(ITimeGraphEntry entry) {