# HG changeset patch # User Chris Cannam # Date 1201704185 0 # Node ID 9aab6bd27fcc8d076d070b6dcf52ab915492a01c # Parent 94ada7dbae3c9b34c16cd80bb0636650724e4df9 ... diff -r 94ada7dbae3c -r 9aab6bd27fcc view/View.cpp --- a/view/View.cpp Fri Jan 25 18:15:57 2008 +0000 +++ b/view/View.cpp Wed Jan 30 14:43:05 2008 +0000 @@ -330,9 +330,11 @@ if (e) { size_t rf = alignToReference(f); +#ifdef DEBUG_VIEW_WIDGET_PAINT std::cerr << "View[" << this << "]::setCentreFrame(" << f << "): emitting centreFrameChanged(" << rf << ")" << std::endl; +#endif emit centreFrameChanged(rf, m_followPan, m_followPlay); } } @@ -352,7 +354,9 @@ long z = (long)m_zoomLevel; long frame = m_centreFrame - (width()/2) * z; +#ifdef DEBUG_VIEW_WIDGET_PAINT std::cerr << "View::getFrameForX(" << x << "): z = " << z << ", m_centreFrame = " << m_centreFrame << ", width() = " << width() << ", frame = " << frame << std::endl; +#endif frame = (frame / z) * z; // this is start frame return frame + x * z;