Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2012-07-16 13:03:37 -0400
committerPatrick Tasse2012-07-16 13:03:37 -0400
commit5d5b2e8612e6115c582e67de9d97ff8351fa1865 (patch)
tree3fb4404f04734af8f42cab6bf56294eb3a41a8af
parent1d826dbfd9c6c5f7f20bc227d596e633d84e183b (diff)
downloadorg.eclipse.linuxtools-5d5b2e8612e6115c582e67de9d97ff8351fa1865.tar.gz
org.eclipse.linuxtools-5d5b2e8612e6115c582e67de9d97ff8351fa1865.tar.xz
org.eclipse.linuxtools-5d5b2e8612e6115c582e67de9d97ff8351fa1865.zip
Fix for bug 384417: Incorrect range displayed in histogram tool tip.
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
index ec41e48077..4dcc1a1d4c 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
@@ -614,12 +614,12 @@ public abstract class Histogram implements ControlListener, PaintListener, KeyLi
}
private String formatToolTipLabel(final int index) {
- long startTime = fScaledData.getBucketStartTime(fScaledData.fCurrentBucket);
+ long startTime = fScaledData.getBucketStartTime(index);
// negative values are possible if time values came into the model in decreasing order
if (startTime < 0) {
startTime = 0;
}
- final long endTime = fScaledData.getBucketEndTime(fScaledData.fCurrentBucket);
+ final long endTime = fScaledData.getBucketEndTime(index);
final int nbEvents = (index >= 0) ? fScaledData.fData[index] : 0;
final StringBuffer buffer = new StringBuffer();

Back to the top