Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 540:1092181784a3 sv-v1.6
...
author | Chris Cannam |
---|---|
date | Mon, 29 Jun 2009 16:25:16 +0000 |
parents | e6e38632e8ea |
children | be5c35d3f409 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Jun 09 15:26:25 2009 +0000 +++ b/layer/SpectrogramLayer.cpp Mon Jun 29 16:25:16 2009 +0000 @@ -2575,10 +2575,12 @@ if (mag.isSet()) { if (sx >= int(m_columnMags.size())) { +#ifdef DEBUG_SPECTROGRAM std::cerr << "INTERNAL ERROR: " << sx << " >= " << m_columnMags.size() << " at SpectrogramLayer.cpp::paintDrawBuffer" << std::endl; +#endif } else { m_columnMags[sx].sample(mag); if (overallMag.sample(mag)) overallMagChanged = true; @@ -2779,10 +2781,12 @@ if (mag.isSet()) { if (sx >= int(m_columnMags.size())) { +#ifdef DEBUG_SPECTROGRAM std::cerr << "INTERNAL ERROR: " << sx << " >= " << m_columnMags.size() << " at SpectrogramLayer.cpp::paintDrawBuffer" << std::endl; +#endif } else { m_columnMags[sx].sample(mag); if (overallMag.sample(mag)) overallMagChanged = true;