diff data/model/SparseValueModel.h @ 296:2b6c99b607f1

...
author Chris Cannam
date Fri, 21 Sep 2007 09:13:11 +0000
parents 46398ab6ff58
children 73537d900d4b
line wrap: on
line diff
--- a/data/model/SparseValueModel.h	Thu Sep 06 15:14:47 2007 +0000
+++ b/data/model/SparseValueModel.h	Fri Sep 21 09:13:11 2007 +0000
@@ -67,9 +67,11 @@
         if (!std::isnan(point.value) && !std::isinf(point.value)) {
             if (!m_haveExtents || point.value < m_valueMinimum) {
                 m_valueMinimum = point.value; allChange = true;
+//                std::cerr << "addPoint: value min = " << m_valueMinimum << std::endl;
             }
             if (!m_haveExtents || point.value > m_valueMaximum) {
                 m_valueMaximum = point.value; allChange = true;
+//                std::cerr << "addPoint: value max = " << m_valueMaximum << " (min = " << m_valueMinimum << ")" << std::endl;
             }
             m_haveExtents = true;
         }
@@ -93,9 +95,11 @@
 
 		if (i == m_points.begin() || i->value < m_valueMinimum) {
 		    m_valueMinimum = i->value;
+//                    std::cerr << "deletePoint: value min = " << m_valueMinimum << std::endl;
 		} 
 		if (i == m_points.begin() || i->value > m_valueMaximum) {
 		    m_valueMaximum = i->value;
+//                    std::cerr << "deletePoint: value max = " << m_valueMaximum << std::endl;
 		} 
 	    }