Mercurial > hg > svgui
changeset 345:8c3fb13ef11c
* Fix 1864770 overlaid spectrum layers drawn wrong
author | Chris Cannam |
---|---|
date | Tue, 08 Jan 2008 15:48:39 +0000 |
parents | 832d246b327b |
children | 8f01867cc191 |
files | layer/SpectrumLayer.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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