# HG changeset patch # User Chris Cannam # Date 1542204966 0 # Node ID a0bfe366f9cb2a3d4a96b47abe5fa40397704abb # Parent 900bed394f5a1606e4d13f0a6d001b62aa05a3e1 Correct positioning for centre line when antialiasing with non-0-width pen diff -r 900bed394f5a -r a0bfe366f9cb layer/WaveformLayer.cpp --- 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);