diff main/MainWindow.cpp @ 8:92cb01225e7a

* Avoid adding ruler layer to spectrum
author Chris Cannam
date Wed, 16 Aug 2006 14:56:53 +0000
parents c3ef80114040
children 0dbd08e365ce
line wrap: on
line diff
--- a/main/MainWindow.cpp	Fri Aug 04 17:01:37 2006 +0000
+++ b/main/MainWindow.cpp	Wed Aug 16 14:56:53 2006 +0000
@@ -2531,7 +2531,9 @@
         pane->setPlaybackFollow(View::PlaybackScrollContinuous);
     }
 
-    if (i->second.layer != LayerFactory::TimeRuler) {
+    if (i->second.layer != LayerFactory::TimeRuler &&
+        i->second.layer != LayerFactory::Spectrum) {
+
 	if (!m_timeRulerLayer) {
 //	    std::cerr << "no time ruler layer, creating one" << std::endl;
 	    m_timeRulerLayer = m_document->createMainModelLayer