summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2020-01-23 14:11:18 -0600
committerBen Loftis <ben@harrisonconsoles.com>2020-01-23 14:11:18 -0600
commitc8faadee4b467868d1b49b80a6604e2cc72e3068 (patch)
tree6e8fdb36c9a1b959bf4615785fd3e0594cc15368
parent85f27b28be58b0a53cae52fe0ec79d6ddae85762 (diff)
Fit Selection (Vertical): if we cant fit all selected tracks, report that to the user. But still fit what we can.
-rw-r--r--gtk2_ardour/editor_ops.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 05bd71ad6b..d5e684546d 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -8173,8 +8173,8 @@ Editor::fit_tracks (TrackViewList & tracks)
if (h < TimeAxisView::preset_height (HeightSmall)) {
ArdourMessageDialog msg (_("There are too many tracks to fit in the current window"));
msg.run ();
- /* too small to be displayed */
- return;
+ /* too small to be displayed, just use smallest possible */
+ h = HeightSmall;
}
undo_visual_stack.push_back (current_visual_state (true));