Skip to content

Commit

Permalink
follow up on fix #64251
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jun 22, 2015
1 parent 799dd87 commit 3aa5926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmscore/rendermidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ void renderChordArticulation(Chord *chord, QList<NoteEventList> & ell, int & gat
Note *note = chord->notes()[k];
if ( noteHasGlissando(note))
renderGlissando(events, note);
else {
else if (chord->staff()->isPitchedStaff()) {
for (Articulation* a : chord->articulations()) {
if ( false == a->playArticulation())
continue;
Expand Down
8 changes: 6 additions & 2 deletions libmscore/staff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,16 +820,20 @@ bool Staff::isLinked(Staff* staff)
//---------------------------------------------------------
// primaryStaff
/// if there are linked staves, the primary staff is
/// the one who is played back
/// the one who is played back and it's not a tab staff
/// because we don't have enough information to play
/// e.g ornaments. NOTE: it's not necessarily the top staff!
//---------------------------------------------------------

bool Staff::primaryStaff() const
{
QList<Staff*> s;
if (!_linkedStaves)
return true;
if (isTabStaff())
return false;
foreach(Staff* staff, _linkedStaves->staves()) {
if (staff->score() == score())
if (staff->score() == score() && !staff->isTabStaff())
s.append(staff);
}
return s.front() == this;
Expand Down

0 comments on commit 3aa5926

Please sign in to comment.