Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 1001:89f44d182d37 tony-2.0-integration
Repaint fix
author | Chris Cannam |
---|---|
date | Tue, 13 Oct 2015 14:24:51 +0100 |
parents | 1a6304c547bf |
children | 7347cf34f538 9c890b7dfa83 |
comparison
equal
deleted
inserted
replaced
1000:4c8e7014abab | 1001:89f44d182d37 |
---|---|
1510 #endif | 1510 #endif |
1511 return 0; | 1511 return 0; |
1512 } | 1512 } |
1513 if (m_fftModels[view]->getHeight() != fftSize / 2 + 1) { | 1513 if (m_fftModels[view]->getHeight() != fftSize / 2 + 1) { |
1514 #ifdef DEBUG_SPECTROGRAM_REPAINT | 1514 #ifdef DEBUG_SPECTROGRAM_REPAINT |
1515 cerr << "SpectrogramLayer::getFFTModel(" << v << "): Found a model with the wrong height (" << m_fftModels[view].first->getHeight() << ", wanted " << (fftSize / 2 + 1) << ")" << endl; | 1515 cerr << "SpectrogramLayer::getFFTModel(" << v << "): Found a model with the wrong height (" << m_fftModels[view]->getHeight() << ", wanted " << (fftSize / 2 + 1) << ")" << endl; |
1516 #endif | 1516 #endif |
1517 delete m_fftModels[view]; | 1517 delete m_fftModels[view]; |
1518 m_fftModels.erase(view); | 1518 m_fftModels.erase(view); |
1519 delete m_peakCaches[view]; | 1519 delete m_peakCaches[view]; |
1520 m_peakCaches.erase(view); | 1520 m_peakCaches.erase(view); |