Merge pull request #1030 from LMMS/stable-1.1

sync
This commit is contained in:
Vesa V
2014-07-26 16:28:01 +03:00
4 changed files with 6 additions and 4 deletions

View File

@@ -1000,13 +1000,14 @@ void AudioFileProcessorWaveView::updateGraph()
{
reverse();
}
else if( m_last_from == m_from && m_last_to == m_to )
else if( m_last_from == m_from && m_last_to == m_to && m_sampleBuffer.amplification() == m_last_amp )
{
return;
}
m_last_from = m_from;
m_last_to = m_to;
m_last_amp = m_sampleBuffer.amplification();
m_graph.fill( Qt::transparent );
QPainter p( &m_graph );

View File

@@ -239,6 +239,7 @@ private:
f_cnt_t m_to;
f_cnt_t m_last_from;
f_cnt_t m_last_to;
float m_last_amp;
knob * m_startKnob;
knob * m_endKnob;
knob * m_loopKnob;