Mercurial > hg > svgui
diff layer/NoteLayer.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/NoteLayer.cpp Wed Dec 04 14:00:27 2013 +0000 +++ b/layer/NoteLayer.cpp Tue Jan 28 15:02:09 2014 +0000 @@ -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;