# HG changeset patch # User Chris Cannam # Date 1201284957 0 # Node ID 94ada7dbae3c9b34c16cd80bb0636650724e4df9 # Parent de4db9b5dcf1403e4d7fff42751db8d95adde106 * Add plugin version to Transform record * Warn when the plugin version being used to restore or regenerate a layer is not the same as the one originally used to create it diff -r de4db9b5dcf1 -r 94ada7dbae3c view/View.cpp --- a/view/View.cpp Thu Jan 24 22:49:19 2008 +0000 +++ b/view/View.cpp Fri Jan 25 18:15:57 2008 +0000 @@ -351,6 +351,9 @@ { long z = (long)m_zoomLevel; long frame = m_centreFrame - (width()/2) * z; + + std::cerr << "View::getFrameForX(" << x << "): z = " << z << ", m_centreFrame = " << m_centreFrame << ", width() = " << width() << ", frame = " << frame << std::endl; + frame = (frame / z) * z; // this is start frame return frame + x * z; }