Mercurial > hg > svgui
diff layer/WaveformLayer.cpp @ 1393:a0bfe366f9cb spectrogramparam
Correct positioning for centre line when antialiasing with non-0-width pen
author | Chris Cannam |
---|---|
date | Wed, 14 Nov 2018 14:16:06 +0000 |
parents | 694004228ab7 |
children | 28075cc658c9 |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Wed Nov 14 11:01:18 2018 +0000 +++ b/layer/WaveformLayer.cpp Wed Nov 14 14:16:06 2018 +0000 @@ -783,7 +783,7 @@ // Horizontal axis along middle paint->setPen(QPen(midColour, 0)); - paint->drawLine(x0, my, x1, my); + paint->drawLine(QPointF(x0, my + 0.5), QPointF(x1, my + 0.5)); paintChannelScaleGuides(v, paint, rect, ch);