Skip to content

Commit 2745b18

Browse files
vladaramaMatthewKhouzam
authored andcommitted
use <= instead of == to catch 0
Signed-off-by: Vlad Arama <vlad.arama@ericsson.com>
1 parent 0c0d4f5 commit 2745b18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/histogram

tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/histogram/HistogramView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ private void setNewRange(long startTime, long duration) {
610610
realStart = fTraceStartTime;
611611
}
612612

613-
if (duration == 1) {
613+
if (duration <= 1) {
614614
fTimeSpanControl.setValue(fWindowSpan);
615615
return;
616616
}

0 commit comments

Comments
 (0)