Skip to content

Commit 7c1f1c0

Browse files
committed
no relayout during playback
1 parent 71d39e6 commit 7c1f1c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mscore/seq.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ void Seq::heartBeatTimeout()
11291129
--ppos;
11301130
mutex.unlock();
11311131

1132+
QRectF r;
11321133
for (;guiPos != events.cend(); ++guiPos) {
11331134
if (guiPos->first > ppos->first)
11341135
break;
@@ -1139,15 +1140,15 @@ void Seq::heartBeatTimeout()
11391140
while (note1) {
11401141
note1->setMark(true);
11411142
markedNotes.append(note1);
1142-
cs->addRefresh(note1->canvasBoundingRect());
1143+
r |= note1->canvasBoundingRect();
11431144
note1 = note1->tieFor() ? note1->tieFor()->endNote() : 0;
11441145
}
11451146

11461147
}
11471148
else {
11481149
while (note1) {
11491150
note1->setMark(false);
1150-
cs->addRefresh(note1->canvasBoundingRect());
1151+
r |= note1->canvasBoundingRect();
11511152
markedNotes.removeOne(note1);
11521153
note1 = note1->tieFor() ? note1->tieFor()->endNote() : 0;
11531154
}
@@ -1164,7 +1165,7 @@ void Seq::heartBeatTimeout()
11641165
PianorollEditor* pre = mscore->getPianorollEditor();
11651166
if (pre && pre->isVisible())
11661167
pre->heartBeat(this);
1167-
cs->update();
1168+
cv->update(cv->toPhysical(r));
11681169
}
11691170

11701171
//---------------------------------------------------------

0 commit comments

Comments
 (0)