Mercurial > hg > svgui
diff layer/TimeValueLayer.h @ 81:b9f71b8ae21e
* Ensure consistent ordering of layer text labels
* Fix erroneous SR mismatch warning when adding a wave-file model when
no other wave-file model is present (only models that don't assert any
particular playback samplerate)
author | Chris Cannam |
---|---|
date | Thu, 27 Apr 2006 11:49:34 +0000 |
parents | 19bf27e4fb29 |
children | 4b98bda7e94d |
line wrap: on
line diff
--- a/layer/TimeValueLayer.h Wed Apr 26 16:00:13 2006 +0000 +++ b/layer/TimeValueLayer.h Thu Apr 27 11:49:34 2006 +0000 @@ -103,7 +103,7 @@ virtual int getCompletion() const { return m_model->getCompletion(); } virtual bool needsTextLabelHeight() const { - return m_plotStyle == PlotSegmentation; + return m_plotStyle == PlotSegmentation && m_model->hasTextLabels(); } virtual bool getValueExtents(float &min, float &max, QString &unit) const;