Mercurial > hg > svgui
diff layer/WaveformLayer.h @ 947:e53a87a5efb2
Allow layers to be loaded without models if their layer class explicitly says it's OK (otherwise default template won't load, as it has an empty waveform layer)
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 10:10:26 +0100 |
parents | 4a578a360011 |
children | e3c7da3d896e |
line wrap: on
line diff
--- a/layer/WaveformLayer.h Mon Apr 20 09:12:17 2015 +0100 +++ b/layer/WaveformLayer.h Mon Apr 20 10:10:26 2015 +0100 @@ -202,6 +202,8 @@ virtual int getCurrentVerticalZoomStep() const; virtual void setVerticalZoomStep(int); + virtual bool canExistWithoutModel() const { return true; } + protected: int dBscale(double sample, int m) const;