Merge pull request #374 from Soerboe/grace-after

fix tick of grace note after note
This commit is contained in:
Werner Schweer 2013-05-28 00:18:42 -07:00
commit f895cd020c

View file

@ -1144,8 +1144,10 @@ void Score::undoAddGrace(Chord* chord, Segment* s, bool behind)
else
staffList.append(ostaff);
int tick = s->tick();
if (behind)
tick += chord->duration().ticks();
if (behind) {
Chord* c = static_cast<Chord*>(s->element(chord->track()));
tick += c->duration().ticks();
}
foreach(Staff* staff, staffList) {
//