Use AxisView::get_gui_property API in TimeAxisView class
This commit is contained in:
parent
be59503364
commit
2c4e801183
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user