diff data/model/DenseThreeDimensionalModel.h @ 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 59e7fe1b1003
children cc27f35aa75c
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: