File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1129,6 +1129,7 @@ void Seq::heartBeatTimeout()
1129
1129
--ppos;
1130
1130
mutex.unlock ();
1131
1131
1132
+ QRectF r;
1132
1133
for (;guiPos != events.cend (); ++guiPos) {
1133
1134
if (guiPos->first > ppos->first )
1134
1135
break ;
@@ -1139,15 +1140,15 @@ void Seq::heartBeatTimeout()
1139
1140
while (note1) {
1140
1141
note1->setMark (true );
1141
1142
markedNotes.append (note1);
1142
- cs-> addRefresh ( note1->canvasBoundingRect () );
1143
+ r |= note1->canvasBoundingRect ();
1143
1144
note1 = note1->tieFor () ? note1->tieFor ()->endNote () : 0 ;
1144
1145
}
1145
1146
1146
1147
}
1147
1148
else {
1148
1149
while (note1) {
1149
1150
note1->setMark (false );
1150
- cs-> addRefresh ( note1->canvasBoundingRect () );
1151
+ r |= note1->canvasBoundingRect ();
1151
1152
markedNotes.removeOne (note1);
1152
1153
note1 = note1->tieFor () ? note1->tieFor ()->endNote () : 0 ;
1153
1154
}
@@ -1164,7 +1165,7 @@ void Seq::heartBeatTimeout()
1164
1165
PianorollEditor* pre = mscore->getPianorollEditor ();
1165
1166
if (pre && pre->isVisible ())
1166
1167
pre->heartBeat (this );
1167
- cs ->update ();
1168
+ cv ->update (cv-> toPhysical (r) );
1168
1169
}
1169
1170
1170
1171
// ---------------------------------------------------------
You can’t perform that action at this time.
0 commit comments