# HG changeset patch # User Chris Cannam # Date 1155740213 0 # Node ID 92cb01225e7a00434d2ce5720f7967b6a292f632 # Parent c3ef80114040cd9117a7b5e28b494a72e9aae24f * Avoid adding ruler layer to spectrum diff -r c3ef80114040 -r 92cb01225e7a main/MainWindow.cpp --- 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