Mercurial > hg > svgui
changeset 1280:34394e8c2942 horizontal-scale
Merge
author | Chris Cannam |
---|---|
date | Wed, 02 May 2018 14:27:17 +0100 |
parents | b6fc0970cd66 (current diff) a04f1012fca2 (diff) |
children | fc9d9f1103fa |
files | layer/SpectrumLayer.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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();