Skip to content

Commit

Permalink
fix #198831: Regression: Cannot enter rests via mouse on drum staves
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jul 19, 2017
1 parent b0b536d commit d72c3cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3215,6 +3215,7 @@ void Score::cmdAddPitch(const EditData& ed, int note, bool addFlag, bool insert)
qDebug("cannot enter notes here (no chord rest at current position)");
return;
}
is.setRest(false);
const Drumset* ds = is.drumset();
int octave = 4;
if (ds) {
Expand Down
4 changes: 1 addition & 3 deletions libmscore/noteentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ NoteVal Score::noteValForPosition(Position pos, bool &error)

switch (st->staffType(tick)->group()) {
case StaffGroup::PERCUSSION: {
if (_is.rest()) {
error = true;
if (_is.rest())
break;
}
const Drumset* ds = instr->drumset();
nval.pitch = _is.drumNote();
if (nval.pitch < 0) {
Expand Down

0 comments on commit d72c3cf

Please sign in to comment.