Mercurial > hg > svgui
diff layer/FlexiNoteLayer.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 | 7169d08e9467 |
children | d50f91fe374e |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp Fri Jan 10 14:17:50 2014 +0000 +++ b/layer/FlexiNoteLayer.cpp Fri Jan 10 14:41:38 2014 +0000 @@ -893,7 +893,7 @@ void FlexiNoteLayer::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;