Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2012-07-16 17:03:37 +0000
committerPatrick Tasse2012-07-16 20:34:10 +0000
commit6e9c4095a3ba5fdaff9c79914ebada81683a68c9 (patch)
tree664a4e3b476737ecc71944347de094d5395ba132
parent2e4cfc72251c7004dc43da5e6c8693dc89537852 (diff)
downloadorg.eclipse.linuxtools-6e9c4095a3ba5fdaff9c79914ebada81683a68c9.tar.gz
org.eclipse.linuxtools-6e9c4095a3ba5fdaff9c79914ebada81683a68c9.tar.xz
org.eclipse.linuxtools-6e9c4095a3ba5fdaff9c79914ebada81683a68c9.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