diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-01 21:29:57 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:58 +1000 |
commit | 2c4e801183d14a2fce598caeea1b4948d0e0e1ad (patch) | |
tree | 74f088b3473aada8af4399ffcb51765268f5c489 /gtk2_ardour | |
parent | be595033641d672023d4466e09ed8ac264c9eacb (diff) |
Use AxisView::get_gui_property API in TimeAxisView class
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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)); } |