Skip to content

Commit

Permalink
Fix #57651: Crash on paste of tuplet in imported MIDI file
Browse files Browse the repository at this point in the history
  • Loading branch information
trig-ger committed Apr 25, 2015
1 parent 7d70645 commit dee0988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/element.h
Expand Up @@ -438,7 +438,7 @@ class Element : public QObject, public ScoreElement {

int staffIdx() const { return _track >> 2; }
int voice() const { return _track & 3; }
void setVoice(int v) { _track = (_track / VOICES) + v; }
void setVoice(int v) { _track = (_track / VOICES) * VOICES + v; }
Staff* staff() const;
Part* part() const;

Expand Down

0 comments on commit dee0988

Please sign in to comment.