Fix first histogram bucket not drawn
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / histogram / Histogram.java
index 16c0e3e0a5422699c75b270664e65843d7f9dcfb..3b62353f5d964ea5a0f88212e6753ef90ae14066 100644 (file)
@@ -539,7 +539,7 @@ public abstract class Histogram implements ControlListener, PaintListener, KeyLi
             // Draw the histogram bars
             imageGC.setBackground(fHistoBarColor);
             final int limit = width < scaledData.fWidth ? width : scaledData.fWidth;
-            for (int i = 1; i < limit; i++) {
+            for (int i = 0; i < limit; i++) {
                 final int value = (int) Math.ceil(scaledData.fData[i] * scaledData.fScalingFactor);
                 imageGC.fillRectangle(i, height - value, 1, value);
             }
This page took 0.023765 seconds and 5 git commands to generate.