Mercurial > hg > svgui
changeset 540:1092181784a3 sv-v1.6
...
author | Chris Cannam |
---|---|
date | Mon, 29 Jun 2009 16:25:16 +0000 |
parents | 566787389e59 |
children | e233627a923e |
files | layer/SpectrogramLayer.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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;