changeset 552:bbe503e368a9

* Restore peak bins mode in spectrogram
author Chris Cannam
date Thu, 05 Feb 2009 17:46:34 +0000
parents 408e56d30f58
children 98077b21a9e1
files data/model/Dense3DModelPeakCache.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/Dense3DModelPeakCache.cpp	Thu Feb 05 17:33:21 2009 +0000
+++ b/data/model/Dense3DModelPeakCache.cpp	Thu Feb 05 17:46:34 2009 +0000
@@ -48,7 +48,8 @@
 {
     if (!m_source) return false;
     if (haveColumn(column)) return true;
-    for (int i = 0; i < m_resolution; ++i) {
+    for (int i = m_resolution; i > 0; ) {
+        --i;
         if (!m_source->isColumnAvailable(column * m_resolution + i)) {
             return false;
         }