mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +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 */
|
/* 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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue