diff base/Layer.h @ 40:b2d1a61ab916

* A bit more work on main window / document / commands stuff. This is still pretty unstable. * Enable CSV file reader also to read files with other separators (e.g. .lab files with space separators) * Show "(R)" on waveform display when resampling during playback * Add ability to import additional audio files (can't process them yet) * Fixes to spectrogram cache for multiple views * Fix to avoid floating-point exception in sparse model when resolution not set yet
author Chris Cannam
date Mon, 06 Mar 2006 17:20:25 +0000
parents e1a0cf2dcc79
children 2b6412c1e724
line wrap: on
line diff
--- a/base/Layer.h	Fri Mar 03 17:52:21 2006 +0000
+++ b/base/Layer.h	Mon Mar 06 17:20:25 2006 +0000
@@ -198,9 +198,8 @@
      * view and is not expected to become visible in the near future
      * (for example because the user has explicitly removed or hidden
      * it).  The layer may respond by (for example) freeing any cache
-     * memory it is using, until next time its paint method is called.
-     * It does not need to remember not to draw itself; the view will
-     * handle that.
+     * memory it is using, until next time its paint method is called,
+     * when it should set itself un-dormant again.
      */
     virtual void setLayerDormant(const View *v, bool dormant) {
 	m_dormancy[v] = dormant;
@@ -230,7 +229,7 @@
     void layerNameChanged();
 
 protected:
-    std::map<const void *, bool> m_dormancy;
+    mutable std::map<const void *, bool> m_dormancy;
 };
 
 #endif