hide patch changes if they are too wide for the region at a given zoom level

git-svn-id: svn://localhost/ardour2/branches/3.0@12677 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-12 17:55:05 +00:00
parent aadd594bd8
commit 9c986098a2

View File

@ -1347,6 +1347,14 @@ MidiRegionView::reset_width_dependent_items (double pixel_width)
redisplay_model();
}
for (PatchChanges::iterator x = _patch_changes.begin(); x != _patch_changes.end(); ++x) {
if ((*x)->width() >= _pixel_width) {
(*x)->hide();
} else {
(*x)->show();
}
}
move_step_edit_cursor (_step_edit_cursor_position);
set_step_edit_cursor_width (_step_edit_cursor_width);
}