Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 697:26b1ffe412f9
Ensure new piano scales only appear when not auto-aligning
author | Chris Cannam |
---|---|
date | Wed, 04 Dec 2013 12:17:44 +0000 |
parents | 5674950ed82a |
children | ad7623c39396 |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Tue Dec 03 17:56:38 2013 +0000 +++ b/layer/TimeValueLayer.cpp Wed Dec 04 12:17:44 2013 +0000 @@ -1198,6 +1198,7 @@ int TimeValueLayer::getVerticalScaleWidth(View *, bool, QPainter &paint) const { + if (!m_model || shouldAutoAlign()) return 0; int w = paint.fontMetrics().width("-000.000"); if (m_plotStyle == PlotSegmentation) return w + 20; else return w + 10;