Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 345:8c3fb13ef11c
* Fix 1864770 overlaid spectrum layers drawn wrong
author | Chris Cannam |
---|---|
date | Tue, 08 Jan 2008 15:48:39 +0000 |
parents | 2f83b6e3b8ca |
children | 369a197737c7 |
line wrap: on
line diff
--- 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