Mercurial > hg > svgui
diff view/Overview.cpp @ 214:8520b7918104
* Fix overzealous cacheing in waveform layer that was leading to inaccurate
positioning of view rects & playback pointer on overview widget sometimes
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2007 17:12:50 +0000 |
parents | df791d8c8f58 |
children | cd81066ac7ad |
line wrap: on
line diff
--- a/view/Overview.cpp Thu Mar 01 15:35:27 2007 +0000 +++ b/view/Overview.cpp Thu Mar 01 17:12:50 2007 +0000 @@ -101,6 +101,8 @@ { // Recalculate zoom in case the size of the widget has changed. +// std::cerr << "Overview::paintEvent: width is " << width() << ", centre frame " << m_centreFrame << std::endl; + size_t startFrame = getModelsStartFrame(); size_t frameCount = getModelsEndFrame() - getModelsStartFrame(); int zoomLevel = frameCount / width(); @@ -116,7 +118,10 @@ centreFrame = (startFrame + getModelsEndFrame())/2; } if (centreFrame != m_centreFrame) { +// std::cerr << "Overview::paintEvent: Centre frame changed from " +// << m_centreFrame << " to " << centreFrame << " and thus start frame from " << getStartFrame(); m_centreFrame = centreFrame; +// std::cerr << " to " << getStartFrame() << std::endl; emit centreFrameChanged(m_centreFrame, false, PlaybackIgnore); }