Skip to content

Commit

Permalink
fix #40216: Accidental on trill are not displayed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 29, 2014
1 parent c3d48c6 commit be027cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/accidental.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Accidental : public Element {
virtual void startEdit(MuseScoreView*, const QPointF&) { setGenerated(false); }

SymId symbol() const;
Note* note() const { return (Note*)parent(); }
Note* note() const { return (parent() && parent()->type() == Element::Type::NOTE) ? (Note*)parent() : 0; }

bool hasBracket() const { return _hasBracket; }
void setHasBracket(bool val) { _hasBracket = val; }
Expand Down

0 comments on commit be027cd

Please sign in to comment.