13
0

Use AxisView::get_gui_property API in AutomationTimeAxis class

This commit is contained in:
Tim Mayberry 2016-08-30 22:32:13 +10:00
parent de80767c8c
commit 13d2670e96

View File

@ -179,9 +179,9 @@ AutomationTimeAxisView::AutomationTimeAxisView (
set_tooltip(auto_dropdown, _("automation state"));
set_tooltip(hide_button, _("hide track"));
const 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));
}