comparison layer/RegionLayer.cpp @ 717:137d3ff48f73 tonioni

Suppress vertical scale when there are no points (scale looks absurd without sensible range)
author Chris Cannam
date Fri, 10 Jan 2014 14:41:38 +0000
parents 084f65094203
children 1d526ba11a24
comparison
equal deleted inserted replaced
716:67b167bb60ab 717:137d3ff48f73
1067 } 1067 }
1068 1068
1069 void 1069 void
1070 RegionLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const 1070 RegionLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const
1071 { 1071 {
1072 if (!m_model) return; 1072 if (!m_model || m_model->getPoints().empty()) return;
1073 1073
1074 QString unit; 1074 QString unit;
1075 float min, max; 1075 float min, max;
1076 bool logarithmic; 1076 bool logarithmic;
1077 1077