Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
716:67b167bb60ab | 717:137d3ff48f73 |
---|---|
891 } | 891 } |
892 | 892 |
893 void | 893 void |
894 FlexiNoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const | 894 FlexiNoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const |
895 { | 895 { |
896 if (!m_model) return; | 896 if (!m_model || m_model->getPoints().empty()) return; |
897 | 897 |
898 QString unit; | 898 QString unit; |
899 float min, max; | 899 float min, max; |
900 bool logarithmic; | 900 bool logarithmic; |
901 | 901 |