Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/RegionLayer.cpp Fri Jan 10 14:17:50 2014 +0000 +++ b/layer/RegionLayer.cpp Fri Jan 10 14:41:38 2014 +0000 @@ -1069,7 +1069,7 @@ void RegionLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const { - if (!m_model) return; + if (!m_model || m_model->getPoints().empty()) return; QString unit; float min, max;