Use AxisView::get_gui_property API in AutomationTimeAxis class
authorTim Mayberry <mojofunk@gmail.com>
Tue, 30 Aug 2016 12:32:13 +0000 (22:32 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:58 +0000 (09:36 +1000)
gtk2_ardour/automation_time_axis.cc

index 778c57cdba8b7358c5261e6a3beccae84b254af9..fa5452d8853be556e5ac5b4e75efa69df4c45f30 100644 (file)
@@ -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));
        }