Mercurial > hg > svgui
diff layer/NoteLayer.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/NoteLayer.cpp Sat Apr 12 01:07:05 2014 -0700 +++ b/layer/NoteLayer.cpp Wed May 14 09:54:34 2014 +0100 @@ -56,12 +56,12 @@ m_scaleMinimum(0), m_scaleMaximum(0) { - + SVDEBUG << "constructed NoteLayer" << endl; } void NoteLayer::setModel(NoteModel *model) -{ +{ if (m_model == model) return; m_model = model; @@ -842,7 +842,7 @@ void NoteLayer::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;