Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 1280:34394e8c2942 horizontal-scale
Merge
author | Chris Cannam |
---|---|
date | Wed, 02 May 2018 14:27:17 +0100 |
parents | b6fc0970cd66 a04f1012fca2 |
children | fc9d9f1103fa |
line wrap: on
line diff
--- 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();