Mercurial > hg > svgui
diff layer/RegionLayer.cpp @ 771:a964151832a7
Merge from branch tony_integration
author | Chris Cannam |
---|---|
date | Wed, 14 May 2014 09:54:34 +0100 |
parents | 137d3ff48f73 |
children | 1d526ba11a24 |
line wrap: on
line diff
--- a/layer/RegionLayer.cpp Sat Apr 12 01:07:05 2014 -0700 +++ b/layer/RegionLayer.cpp Wed May 14 09:54:34 2014 +0100 @@ -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;