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