Merge pull request #374 from Soerboe/grace-after
fix tick of grace note after note
This commit is contained in:
commit
f895cd020c
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue