fix slow behaviour when changing visible track height in Editor::set_visible_track_count()

This commit is contained in:
Paul Davis 2014-12-23 12:41:32 -05:00
parent 6b6d78c41f
commit ea2e80f298
1 changed files with 1 additions and 0 deletions

View File

@ -3610,6 +3610,7 @@ Editor::set_visible_track_count (int32_t n)
int h;
string str;
DisplaySuspender ds;
if (_visible_track_count > 0) {
h = trackviews_height() / _visible_track_count;