comparison layer/PaintAssistant.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents e52ed907cc42
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
102 int ny = y; 102 int ny = y;
103 if (nval != 0.0) { 103 if (nval != 0.0) {
104 ny = getYForValue(scale, nval, minVal, maxVal, rect.y(), h); 104 ny = getYForValue(scale, nval, minVal, maxVal, rect.y(), h);
105 } 105 }
106 106
107 // std::cerr << "PaintAssistant::paintVerticalLevelScale: val = " 107 // DEBUG << "PaintAssistant::paintVerticalLevelScale: val = "
108 // << val << ", y = " << y << ", h = " << h << std::endl; 108 // << val << ", y = " << y << ", h = " << h << endl;
109 109
110 bool spaceForLabel = (i == 0 || 110 bool spaceForLabel = (i == 0 ||
111 abs(y - lastLabelledY) >= textHeight - 1); 111 abs(y - lastLabelledY) >= textHeight - 1);
112 112
113 if (spaceForLabel) { 113 if (spaceForLabel) {