changeset 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 de4db9b5dcf1
children 9aab6bd27fcc
files view/View.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
 }