Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 150:e2f13213c2f1
* bit of work on harmonic cursor in spectrum
author | Chris Cannam |
---|---|
date | Mon, 11 Jun 2007 12:14:52 +0000 |
parents | 140ea2569bcc |
children | 152619d379e0 |
comparison
equal
deleted
inserted
replaced
149:37cb005f7c40 | 150:e2f13213c2f1 |
---|---|
3298 if (m_viewManager->getPlaySelectionMode()) { | 3298 if (m_viewManager->getPlaySelectionMode()) { |
3299 MultiSelection::SelectionList sl = m_viewManager->getSelections(); | 3299 MultiSelection::SelectionList sl = m_viewManager->getSelections(); |
3300 if (!sl.empty()) { | 3300 if (!sl.empty()) { |
3301 MultiSelection::SelectionList::iterator i = sl.end(); | 3301 MultiSelection::SelectionList::iterator i = sl.end(); |
3302 --i; | 3302 --i; |
3303 size_t selectionEndFrame = i->getEndFrame(); | 3303 int selectionEndFrame = i->getEndFrame(); |
3304 if (frame > selectionEndFrame) frame = selectionEndFrame; | 3304 if (frame > selectionEndFrame) frame = selectionEndFrame; |
3305 } | 3305 } |
3306 } | 3306 } |
3307 | 3307 |
3308 m_viewManager->setPlaybackFrame(frame); | 3308 m_viewManager->setPlaybackFrame(frame); |
3350 } | 3350 } |
3351 | 3351 |
3352 if (m_viewManager->getPlaySelectionMode()) { | 3352 if (m_viewManager->getPlaySelectionMode()) { |
3353 MultiSelection::SelectionList sl = m_viewManager->getSelections(); | 3353 MultiSelection::SelectionList sl = m_viewManager->getSelections(); |
3354 if (!sl.empty()) { | 3354 if (!sl.empty()) { |
3355 size_t selectionStartFrame = sl.begin()->getStartFrame(); | 3355 int selectionStartFrame = sl.begin()->getStartFrame(); |
3356 if (frame < selectionStartFrame) frame = selectionStartFrame; | 3356 if (frame < selectionStartFrame) frame = selectionStartFrame; |
3357 } | 3357 } |
3358 } | 3358 } |
3359 | 3359 |
3360 m_viewManager->setPlaybackFrame(frame); | 3360 m_viewManager->setPlaybackFrame(frame); |