After changing a note/chord value, arrow keys become ineffective
This commit is contained in:
Maurizio Gavioli 2012-12-27 00:01:55 +01:00
parent ddb0ebabb6
commit 115c5ef611

View file

@ -160,7 +160,7 @@ ChordRest* Selection::lastChordRest(int track) const
Element* el = _el[0];
if (el && el->type() == Element::NOTE)
return static_cast<ChordRest*>(el->parent());
else if (el->type() == Element::REST)
else if (el->type() == Element::CHORD || el->type() == Element::REST)
return static_cast<ChordRest*>(el);
return 0;
}