Commit e8f1480f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix mono clip audio thumbnails broken.

Related to #1001
parent 4f3545cd
......@@ -158,8 +158,8 @@ public:
pen.setColor(m_color);
painter->setBrush(m_color);
pen.setCapStyle(Qt::FlatCap);
double increment = m_scale / 2; //qMax(1., 1. / qAbs(indicesPrPixel));
qreal indicesPrPixel = 2. / m_scale; //qreal(m_outPoint - m_inPoint) / width() * m_precisionFactor;
double increment = m_scale / m_channels; //qMax(1., 1. / qAbs(indicesPrPixel));
qreal indicesPrPixel = m_channels / m_scale; //qreal(m_outPoint - m_inPoint) / width() * m_precisionFactor;
int h = int(height());
double offset = 0;
bool pathDraw = increment > 1.2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment