changeset 985:f073d924a7c3

Fix #1058 clicking row in Layer Edit dialog when colour 3d plot layer active jumps to wrong frame (was using sample rate where resolution intended)
author Chris Cannam
date Tue, 16 Sep 2014 10:29:19 +0100
parents a8f91db36e9d
children e8e6c4e7437b
files data/model/DenseThreeDimensionalModel.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/DenseThreeDimensionalModel.h	Wed Sep 10 09:40:45 2014 +0100
+++ b/data/model/DenseThreeDimensionalModel.h	Tue Sep 16 10:29:19 2014 +0100
@@ -172,10 +172,10 @@
     }
 
     virtual long getFrameForRow(int row) const {
-        return row * getSampleRate();
+        return row * getResolution();
     }
     virtual int getRowForFrame(long frame) const {
-        return frame / getSampleRate();
+        return frame / getResolution();
     }
 
 protected: