Merge pull request #1155 from BartlomiejLewandowski/29756-tablature-selection-fix

Tablature selection fix
This commit is contained in:
Maurizio M. Gavioli 2014-08-17 23:54:27 +02:00
commit 24700da2b9
2 changed files with 6 additions and 2 deletions

View file

@ -1817,6 +1817,10 @@ Element* Score::move(const QString& cmd)
el = static_cast<Chord*>(el)->upNote(); // originally downNote
_playNote = true;
select(el, SelectType::SINGLE, 0);
if (noteEntryMode()) {
foreach (MuseScoreView* view ,viewer)
view->moveCursor();
}
}
return el;
}

View file

@ -5559,11 +5559,11 @@ Element* ScoreView::elementNear(QPointF p)
// posChanged
//---------------------------------------------------------
void ScoreView::posChanged(POS pos, unsigned /*tick*/)
void ScoreView::posChanged(POS pos, unsigned tick)
{
switch (pos) {
case POS::CURRENT:
moveCursor();
moveCursor(tick);
break;
case POS::LEFT:
_curLoopIn->move(_score->pos(POS::LEFT));