diff --git a/UI/volume-control.cpp b/UI/volume-control.cpp index 544d876eb..02dec0a6c 100644 --- a/UI/volume-control.cpp +++ b/UI/volume-control.cpp @@ -733,18 +733,11 @@ void VolumeMeter::paintMeter(QPainter &painter, int x, int y, backgroundErrorColor); } else { + qreal end = errorLength + warningLength + nominalLength; painter.fillRect( minimumPosition, y, - nominalLength, height, - foregroundNominalColor); - painter.fillRect( - warningPosition, y, - warningLength, height, - foregroundWarningColor); - painter.fillRect( - errorPosition, y, - errorLength, height, - foregroundErrorColor); + end, height, + QBrush(foregroundErrorColor)); } if (peakHoldPosition - 3 < minimumPosition) {