# HG changeset patch # User Chris Cannam # Date 1181564092 0 # Node ID e2f13213c2f1a4cf2b9055bc47a0dafbca89cdd0 # Parent 37cb005f7c4015c55a24a5d3299e059b5964c1fa * bit of work on harmonic cursor in spectrum diff -r 37cb005f7c40 -r e2f13213c2f1 main/MainWindow.cpp --- a/main/MainWindow.cpp Fri Jun 08 15:19:50 2007 +0000 +++ b/main/MainWindow.cpp Mon Jun 11 12:14:52 2007 +0000 @@ -3300,7 +3300,7 @@ if (!sl.empty()) { MultiSelection::SelectionList::iterator i = sl.end(); --i; - size_t selectionEndFrame = i->getEndFrame(); + int selectionEndFrame = i->getEndFrame(); if (frame > selectionEndFrame) frame = selectionEndFrame; } } @@ -3352,7 +3352,7 @@ if (m_viewManager->getPlaySelectionMode()) { MultiSelection::SelectionList sl = m_viewManager->getSelections(); if (!sl.empty()) { - size_t selectionStartFrame = sl.begin()->getStartFrame(); + int selectionStartFrame = sl.begin()->getStartFrame(); if (frame < selectionStartFrame) frame = selectionStartFrame; } }