13
0

fix bug where hidden ghostregions were updated.

This commit is contained in:
nick_m 2016-12-30 20:40:48 +11:00
parent bde3010be7
commit 4d274cbf26

View File

@ -1252,7 +1252,7 @@ MidiRegionView::redisplay_model()
for (std::vector<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
MidiGhostRegion* gr = dynamic_cast<MidiGhostRegion*> (*i);
if (gr && gr->trackview.y_position() != -1) {
if (gr && !gr->trackview.hidden()) {
gr->update_note (sus, !update);
}
}
@ -1264,7 +1264,7 @@ MidiRegionView::redisplay_model()
for (std::vector<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
MidiGhostRegion* gr = dynamic_cast<MidiGhostRegion*> (*i);
if (gr && gr->trackview.y_position() != -1) {
if (gr && !gr->trackview.hidden()) {
gr->update_hit (hit, !update);
}
}