changeset 204:29b70bdaacdc

...
author Chris Cannam
date Tue, 12 Dec 2006 10:41:41 +0000
parents 11e107062a2b
children 05154c7bb90b
files data/model/FFTModel.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/FFTModel.cpp	Fri Dec 08 18:17:29 2006 +0000
+++ b/data/model/FFTModel.cpp	Tue Dec 12 10:41:41 2006 +0000
@@ -99,7 +99,7 @@
 {
     size_t sr = getSampleRate();
     if (!sr) return "";
-    QString name = tr("%1 Hz").arg((n * sr) / (getHeight() * 2));
+    QString name = tr("%1 Hz").arg((n * sr) / ((getHeight()-1) * 2));
     return name;
 }