summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2008-10-13 00:04:15 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2008-10-13 00:04:15 +0000
commit6786494cd8b658584c49a97496b19015e2c8ffb6 (patch)
treee7cb7835947a6c491858121d5c815f6226f02707 /gtk2_ardour/editor_ops.cc
parentd7ef68b6ee43185c0d34fac3667130d1cd34173f (diff)
A more correct fix for non-disappearing loop/punch range rect, calculate track height in fit_tracks () correctly (doesn't fix the height race condition with the controls layout though).
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3941 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index a32142b99d..814ad5236a 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -6020,7 +6020,7 @@ Editor::fit_tracks ()
child_heights += ((*t)->effective_height - (*t)->current_height());
}
- uint32_t h = (uint32_t) floor ((canvas_height - child_heights)/selection->tracks.size());
+ uint32_t h = (uint32_t) floor ((canvas_height - child_heights - canvas_timebars_vsize)/selection->tracks.size());
double first_y_pos = DBL_MAX;
undo_visual_stack.push_back (current_visual_state());