summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-11-10 21:56:32 +0000
committerCarl Hetherington <carl@carlh.net>2010-11-10 21:56:32 +0000
commitb8da7d196c23a1ad153af7b00e641f5c2573f2c0 (patch)
tree5aff4d63a19c2299618eabed9fe5e063a7999c2b /gtk2_ardour/time_axis_view.cc
parentba8b84eed159b5c6282b176ccd488134a9ea5b72 (diff)
Modified version of Lincoln's patch to stop the summary causing very low track heights. Fixes #3527.
git-svn-id: svn://localhost/ardour2/branches/3.0@7994 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 6d297ef14e..2022783928 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -427,8 +427,12 @@ TimeAxisView::set_height (Height h)
}
void
-TimeAxisView::set_height(uint32_t h)
+TimeAxisView::set_height (uint32_t h)
{
+ if (h < preset_height (HeightSmall)) {
+ h = preset_height (HeightSmall);
+ }
+
time_axis_vbox.property_height_request () = h;
height = h;