summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-09-12 09:01:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-09-12 09:01:52 +0000
commitb0424889b32e136ca25186037b032b229824ac79 (patch)
treeea91d64e0e80954384a6a330b9d8b91981949a81 /gtk2_ardour/automation_time_axis.cc
parent823f44e50a35d75eb7765e74bbbe8908af9a5c1d (diff)
make tracks visible again
git-svn-id: svn://localhost/ardour2/branches/3.0@3719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 36d615453c..47d0ebe61e 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -376,12 +376,10 @@ void
AutomationTimeAxisView::set_height (uint32_t h)
{
bool changed = (height != (uint32_t) h) || first_call_to_set_height;
-
- if (first_call_to_set_height)
- first_call_to_set_height = false;
bool changed_between_small_and_normal = ( (h == hSmall || h == hSmaller) ^ (height == hSmall || height == hSmaller) );
TimeAxisView* state_parent = get_parent_with_state ();
+
assert(state_parent);
XMLNode* xml_node = state_parent->get_automation_child_xml_node (_control->parameter());
@@ -401,6 +399,7 @@ AutomationTimeAxisView::set_height (uint32_t h)
xml_node->add_property ("height", buf);
if (changed_between_small_and_normal || first_call_to_set_height) {
+
first_call_to_set_height = false;
if (h >= hNormal) {
@@ -912,9 +911,9 @@ void
AutomationTimeAxisView::update_extra_xml_shown (bool editor_shown)
{
XMLNode* xml_node = get_state_node();
-// if (xml_node) {
+ if (xml_node) {
xml_node->add_property ("shown", editor_shown ? "yes" : "no");
-// }
+ }
}
guint32