comparison 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
comparison
equal deleted inserted replaced
983:a8f91db36e9d 985:f073d924a7c3
170 virtual SortType getSortType(int) const { 170 virtual SortType getSortType(int) const {
171 return SortNumeric; 171 return SortNumeric;
172 } 172 }
173 173
174 virtual long getFrameForRow(int row) const { 174 virtual long getFrameForRow(int row) const {
175 return row * getSampleRate(); 175 return row * getResolution();
176 } 176 }
177 virtual int getRowForFrame(long frame) const { 177 virtual int getRowForFrame(long frame) const {
178 return frame / getSampleRate(); 178 return frame / getResolution();
179 } 179 }
180 180
181 protected: 181 protected:
182 DenseThreeDimensionalModel() { } 182 DenseThreeDimensionalModel() { }
183 }; 183 };