Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 204:29b70bdaacdc
...
author | Chris Cannam |
---|---|
date | Tue, 12 Dec 2006 10:41:41 +0000 |
parents | 2f2d282d45d0 |
children | 522f82311e4e |
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; }