Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
7:c3ef80114040 | 8:92cb01225e7a |
---|---|
2529 | 2529 |
2530 if (i->second.layer == LayerFactory::Spectrum) { | 2530 if (i->second.layer == LayerFactory::Spectrum) { |
2531 pane->setPlaybackFollow(View::PlaybackScrollContinuous); | 2531 pane->setPlaybackFollow(View::PlaybackScrollContinuous); |
2532 } | 2532 } |
2533 | 2533 |
2534 if (i->second.layer != LayerFactory::TimeRuler) { | 2534 if (i->second.layer != LayerFactory::TimeRuler && |
2535 i->second.layer != LayerFactory::Spectrum) { | |
2536 | |
2535 if (!m_timeRulerLayer) { | 2537 if (!m_timeRulerLayer) { |
2536 // std::cerr << "no time ruler layer, creating one" << std::endl; | 2538 // std::cerr << "no time ruler layer, creating one" << std::endl; |
2537 m_timeRulerLayer = m_document->createMainModelLayer | 2539 m_timeRulerLayer = m_document->createMainModelLayer |
2538 (LayerFactory::TimeRuler); | 2540 (LayerFactory::TimeRuler); |
2539 } | 2541 } |