Mercurial > hg > svgui
diff layer/NoteLayer.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 | 1d526ba11a24 |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Fri Jan 10 14:17:50 2014 +0000 +++ b/layer/NoteLayer.cpp Fri Jan 10 14:41:38 2014 +0000 @@ -842,7 +842,7 @@ void NoteLayer::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;