Mercurial > hg > svgui
changeset 1279:a04f1012fca2
Fix positioning of peak lines on spectrum layer (origin is already accounted for in the bin/frequency to x conversion functions)
author | Chris Cannam |
---|---|
date | Wed, 02 May 2018 14:26:51 +0100 |
parents | 3ca1be2e2c91 |
children | 34394e8c2942 f90a3c2f2930 |
files | layer/SpectrumLayer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();