Use AxisView::get_gui_property API in TimeAxisView class

This commit is contained in:
Tim Mayberry 2016-09-01 21:29:57 +10:00
parent be59503364
commit 2c4e801183

View file

@ -1305,10 +1305,9 @@ TimeAxisView::reset_visual_state ()
{ {
/* this method is not required to trigger a global redraw */ /* this method is not required to trigger a global redraw */
string str = gui_property ("height"); uint32_t height;
if (get_gui_property ("height", height)) {
if (!str.empty()) { set_height (height);
set_height (atoi (str));
} else { } else {
set_height (preset_height (HeightNormal)); set_height (preset_height (HeightNormal));
} }