From 13d2670e967b21463452dc50b36e07e764b84911 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 30 Aug 2016 22:32:13 +1000 Subject: [PATCH] Use AxisView::get_gui_property API in AutomationTimeAxis class --- gtk2_ardour/automation_time_axis.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 778c57cdba..fa5452d885 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -179,9 +179,9 @@ AutomationTimeAxisView::AutomationTimeAxisView ( set_tooltip(auto_dropdown, _("automation state")); set_tooltip(hide_button, _("hide track")); - const string str = gui_property ("height"); - if (!str.empty()) { - set_height (atoi (str)); + uint32_t height; + if (get_gui_property ("height", height)) { + set_height (height); } else { set_height (preset_height (HeightNormal)); }