Use AxisView::get_gui_property API in TimeAxisView class
[ardour.git] / gtk2_ardour / time_axis_view.cc
index 3e3f5e26cac10ea80b77fdefd610980d1a588970..999734962822dce33ed9ccaa4a96f33caa085bcd 100644 (file)
@@ -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));
        }