projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de80767
)
Use AxisView::get_gui_property API in AutomationTimeAxis class
author
Tim Mayberry
<mojofunk@gmail.com>
Tue, 30 Aug 2016 12:32:13 +0000
(22:32 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:58 +0000
(09:36 +1000)
gtk2_ardour/automation_time_axis.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/automation_time_axis.cc
b/gtk2_ardour/automation_time_axis.cc
index 778c57cdba8b7358c5261e6a3beccae84b254af9..fa5452d8853be556e5ac5b4e75efa69df4c45f30 100644
(file)
--- a/
gtk2_ardour/automation_time_axis.cc
+++ b/
gtk2_ardour/automation_time_axis.cc
@@
-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));
}