# HG changeset patch # User Chris Cannam # Date 1525267637 -3600 # Node ID 34394e8c2942fefa86478390ca94fcf1d9abc1ef # Parent b6fc0970cd662de918cd972f8eecf708f316f2fe# Parent a04f1012fca202cdf7df41d5df6d58464e0fa4bf Merge diff -r b6fc0970cd66 -r 34394e8c2942 layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Wed May 02 14:25:44 2018 +0100 +++ b/layer/SpectrumLayer.cpp Wed May 02 14:27:17 2018 +0100 @@ -660,8 +660,7 @@ (void)getYForValue(v, values[bin], norm); // don't need return value, need norm paint.setPen(mapper.map(norm)); - paint.drawLine(xorigin + x, 0, xorigin + x, - v->getPaintHeight() - scaleh - pkh - 1); + paint.drawLine(x, 0, x, v->getPaintHeight() - scaleh - pkh - 1); } paint.restore();