mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Use AxisView::get_gui_property API in TimeAxisView class
This commit is contained in:
parent
be59503364
commit
2c4e801183
1 changed files with 3 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue