Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
716:67b167bb60ab | 717:137d3ff48f73 |
---|---|
840 } | 840 } |
841 | 841 |
842 void | 842 void |
843 NoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const | 843 NoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const |
844 { | 844 { |
845 if (!m_model) return; | 845 if (!m_model || m_model->getPoints().empty()) return; |
846 | 846 |
847 QString unit; | 847 QString unit; |
848 float min, max; | 848 float min, max; |
849 bool logarithmic; | 849 bool logarithmic; |
850 | 850 |