Mercurial > hg > svgui
diff view/View.cpp @ 354:94ada7dbae3c
* 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
author | Chris Cannam |
---|---|
date | Fri, 25 Jan 2008 18:15:57 +0000 |
parents | ac954fc0ec6f |
children | 9aab6bd27fcc |
line wrap: on
line diff
--- 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; }