# HG changeset patch # User Chris Cannam # Date 1246292716 0 # Node ID 1092181784a3a2beaaa97f5661ac4f7ef4e65f46 # Parent 566787389e5970db04fa3d19955177be82feb52e ... diff -r 566787389e59 -r 1092181784a3 layer/SpectrogramLayer.cpp --- 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;