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 e9ab160ff3
commit c61e1826f2

View file

@ -3574,6 +3574,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;