Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2012-07-16 16:31:25 -0400
committerGerrit Code Review @ Eclipse.org2012-07-16 16:31:25 -0400
commitf87bbaa753f7eacec4de6fb95a39f43da0ae2f76 (patch)
treed1e642f52f9359af20b54bfbfa783eb8350c9f5e
parent7b02a527c78f4839341d4ecb0696c61668f5854d (diff)
parent5d5b2e8612e6115c582e67de9d97ff8351fa1865 (diff)
downloadorg.eclipse.linuxtools-f87bbaa753f7eacec4de6fb95a39f43da0ae2f76.tar.gz
org.eclipse.linuxtools-f87bbaa753f7eacec4de6fb95a39f43da0ae2f76.tar.xz
org.eclipse.linuxtools-f87bbaa753f7eacec4de6fb95a39f43da0ae2f76.zip
Merge "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