Mercurial > hg > svgui
diff layer/NoteLayer.cpp @ 695:6d9624e0ac55 tonioni
Toward getting piano scale showing properly
author | Chris Cannam |
---|---|
date | Tue, 03 Dec 2013 18:06:44 +0000 |
parents | ad12e428785b |
children | ceb9a2992d96 |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Tue Dec 03 17:58:40 2013 +0000 +++ b/layer/NoteLayer.cpp Tue Dec 03 18:06:44 2013 +0000 @@ -824,7 +824,9 @@ NoteLayer::paintVerticalScale(View *v, bool, QPainter &paint, QRect) const { float fmin, fmax; - getDisplayExtents(fmin, fmax); + bool log; + QString unit; + if (!getValueExtents(fmin, fmax, log, unit)) return; PianoScale().paintPianoVertical (v, paint, QRect(0, 0, 10, v->height()), fmin, fmax); paint.drawLine(10, 0, 10, v->height());