Mercurial > hg > svgui
comparison layer/TimeValueLayer.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 | ceb9a2992d96 |
children | 15b5c679b909 |
comparison
equal
deleted
inserted
replaced
716:67b167bb60ab | 717:137d3ff48f73 |
---|---|
1228 } | 1228 } |
1229 | 1229 |
1230 void | 1230 void |
1231 TimeValueLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const | 1231 TimeValueLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const |
1232 { | 1232 { |
1233 if (!m_model) return; | 1233 if (!m_model || m_model->getPoints().empty()) return; |
1234 | 1234 |
1235 QString unit; | 1235 QString unit; |
1236 float min, max; | 1236 float min, max; |
1237 bool logarithmic; | 1237 bool logarithmic; |
1238 | 1238 |