changeset 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 900bed394f5a
children 4a36f6130056
files layer/WaveformLayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);