# HG changeset patch # User Chris Cannam # Date 1525267611 -3600 # Node ID a04f1012fca202cdf7df41d5df6d58464e0fa4bf # Parent 3ca1be2e2c91de9069171addda8c039f6644be61 Fix positioning of peak lines on spectrum layer (origin is already accounted for in the bin/frequency to x conversion functions) diff -r 3ca1be2e2c91 -r a04f1012fca2 layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Thu Apr 26 15:06:41 2018 +0100 +++ b/layer/SpectrumLayer.cpp Wed May 02 14:26:51 2018 +0100 @@ -656,7 +656,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() - pkh - 1); + paint.drawLine(x, 0, x, v->getPaintHeight() - scaleh - pkh - 1); } paint.restore();