diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-30 22:32:13 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:58 +1000 |
commit | 13d2670e967b21463452dc50b36e07e764b84911 (patch) | |
tree | b0dea25625de911279eb0fe8ef4fa0b449a3e11a /gtk2_ardour/automation_time_axis.cc | |
parent | de80767c8ca923816f17a6b4ab8d3e31d405121b (diff) |
Use AxisView::get_gui_property API in AutomationTimeAxis class
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 6 |
1 files 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)); } |