# HG changeset patch # User Chris Cannam # Date 1199807319 0 # Node ID 8c3fb13ef11cfe83b328ad2ee70e261a93f78a0f # Parent 832d246b327b99fe3ea960b60c6d716cf2e7ee95 * Fix 1864770 overlaid spectrum layers drawn wrong diff -r 832d246b327b -r 8c3fb13ef11c layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Fri Jan 04 17:08:10 2008 +0000 +++ b/layer/SpectrumLayer.cpp Tue Jan 08 15:48:39 2008 +0000 @@ -54,6 +54,8 @@ void SpectrumLayer::setModel(DenseTimeValueModel *model) { + std::cerr << "SpectrumLayer::setModel(" << model << ") from " << m_originModel << std::endl; + if (m_originModel == model) return; m_originModel = model; @@ -660,6 +662,8 @@ pkh = 10; //!!! } + paint.save(); + if (fft && m_showPeaks) { // draw peak lines @@ -799,6 +803,8 @@ px = x; } // } + + paint.restore(); } void