# HG changeset patch # User Chris Cannam # Date 1385038760 0 # Node ID 41029a6e55c6f24f94fc9b451d6498d6e9fa97af # Parent d8bd193ad17dfac2e50090969a217461441ea70c Make some debug output optional diff -r d8bd193ad17d -r 41029a6e55c6 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Mon Nov 04 15:48:05 2013 +0000 +++ b/layer/Colour3DPlotLayer.cpp Thu Nov 21 12:59:20 2013 +0000 @@ -1350,11 +1350,11 @@ QImage *source = m_cache; - std::cerr << "modelResolution " << modelResolution << ", srRatio " + SVDEBUG << "modelResolution " << modelResolution << ", srRatio " << srRatio << ", m_peakResolution " << m_peakResolution << ", zoomLevel " << zoomLevel << ", result " << ((modelResolution * srRatio * m_peakResolution) / zoomLevel) - << std::endl; + << endl; if (m_peaksCache) { if (((modelResolution * srRatio * m_peakResolution) / zoomLevel) < 1) { @@ -1362,10 +1362,10 @@ source = m_peaksCache; modelResolution *= m_peakResolution; } else { - std::cerr << "not using peaks cache" << std::endl; + SVDEBUG << "not using peaks cache" << endl; } } else { - std::cerr << "have no peaks cache" << std::endl; + SVDEBUG << "have no peaks cache" << endl; } int psy1i = -1;