diff layer/TimeInstantLayer.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/TimeInstantLayer.h	Wed Apr 26 16:00:13 2006 +0000
+++ b/layer/TimeInstantLayer.h	Thu Apr 27 11:49:34 2006 +0000
@@ -85,7 +85,7 @@
 
     virtual int getCompletion() const { return m_model->getCompletion(); }
 
-    virtual bool needsTextLabelHeight() const { return true; }
+    virtual bool needsTextLabelHeight() const { return m_model->hasTextLabels(); }
 
     virtual bool getValueExtents(float &min, float &max, QString &unit) const {
         return false;