From 2c4e801183d14a2fce598caeea1b4948d0e0e1ad Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 1 Sep 2016 21:29:57 +1000 Subject: Use AxisView::get_gui_property API in TimeAxisView class --- gtk2_ardour/time_axis_view.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/time_axis_view.cc') diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 3e3f5e26ca..9997349628 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -1305,10 +1305,9 @@ TimeAxisView::reset_visual_state () { /* this method is not required to trigger a global redraw */ - 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)); } -- cgit v1.2.3