Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 130:47b5b6952189
* Fix alignment of new pane added after play position has changed (but global
centre frame has not been explicitly moved)
author | Chris Cannam |
---|---|
date | Mon, 16 Apr 2007 15:16:10 +0000 |
parents | 20ec0c6d4a97 |
children | 784ea35d07dd |
comparison
equal
deleted
inserted
replaced
129:20ec0c6d4a97 | 130:47b5b6952189 |
---|---|
3418 m_document->addLayerToView(pane, newLayer); | 3418 m_document->addLayerToView(pane, newLayer); |
3419 | 3419 |
3420 m_paneStack->setCurrentPane(pane); | 3420 m_paneStack->setCurrentPane(pane); |
3421 m_paneStack->setCurrentLayer(pane, newLayer); | 3421 m_paneStack->setCurrentLayer(pane, newLayer); |
3422 | 3422 |
3423 std::cerr << "MainWindow::addPane: global centre frame is " | 3423 // std::cerr << "MainWindow::addPane: global centre frame is " |
3424 << m_viewManager->getGlobalCentreFrame() << std::endl; | 3424 // << m_viewManager->getGlobalCentreFrame() << std::endl; |
3425 pane->setCentreFrame(m_viewManager->getGlobalCentreFrame()); | 3425 // pane->setCentreFrame(m_viewManager->getGlobalCentreFrame()); |
3426 | 3426 |
3427 CommandHistory::getInstance()->endCompoundOperation(); | 3427 CommandHistory::getInstance()->endCompoundOperation(); |
3428 | 3428 |
3429 updateMenuStates(); | 3429 updateMenuStates(); |
3430 } | 3430 } |