Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 1277:82258db96244 horizontal-scale
Draw some ticks
author | Chris Cannam |
---|---|
date | Tue, 01 May 2018 16:32:35 +0100 |
parents | b4cb11ca8233 |
children | b6fc0970cd66 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Tue May 01 16:14:22 2018 +0100 +++ b/layer/SpectrumLayer.cpp Tue May 01 16:32:35 2018 +0100 @@ -686,7 +686,7 @@ LogNumericalScale().paintHorizontal (v, this, paint, - QRect(xorigin, h - scaleh, w + xorigin, scaleh)); + QRect(int(getXForBin(v, 0)), h - scaleh, w + xorigin, scaleh)); paint.restore(); }