Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 718:e5f4385615ac tony_integration
Merge from tonioni branch
author | Chris Cannam |
---|---|
date | Tue, 28 Jan 2014 15:02:09 +0000 |
parents | 137d3ff48f73 |
children | 15b5c679b909 |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Wed Dec 04 14:00:27 2013 +0000 +++ b/layer/TimeValueLayer.cpp Tue Jan 28 15:02:09 2014 +0000 @@ -1230,7 +1230,7 @@ void TimeValueLayer::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;