Skip to content

Commit

Permalink
fix #25311
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Aug 12, 2014
1 parent e1d6c9c commit 951f901
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ Element* Score::move(const QString& cmd)
el = nextChordRest(cr);
}
else if (cmd == "prev-chord") {
if (noteEntryMode()) {
if (noteEntryMode() && _is.segment()) {
Segment* s = _is.segment()->prev1();
//
// if _is._segment is first chord/rest segment in measure
Expand Down
13 changes: 7 additions & 6 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2141,13 +2141,14 @@ void Score::nextInputPos(ChordRest* cr, bool doSelect)
int track = (cr->track() / VOICES) * VOICES;
ncr = s ? static_cast<ChordRest*>(s->element(track)) : 0;
}
_is.setSegment(ncr ? ncr->segment() : 0);
if (doSelect)
select(ncr, SelectType::SINGLE, 0);
if (ncr)
if (ncr) {
_is.setSegment(ncr->segment());
if (doSelect)
select(ncr, SelectType::SINGLE, 0);
setPlayPos(ncr->tick());
for (MuseScoreView* v : viewer)
v->moveCursor();
for (MuseScoreView* v : viewer)
v->moveCursor();
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit 951f901

Please sign in to comment.