diff options
author | David Robillard <d@drobilla.net> | 2011-10-07 19:30:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-07 19:30:44 +0000 |
commit | 18e9540ea3b92c5f1b16bff2329b7ab5d152a539 (patch) | |
tree | 740b4eca2c6b670c2d403701d0f194942b23cb52 /gtk2_ardour/axis_view.cc | |
parent | 212de13d428884a28e691f5b5b17cdf615e7e4ea (diff) |
Fix visibility of MIDI CC automation lanes (#4356).
git-svn-id: svn://localhost/ardour2/branches/3.0@10195 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/axis_view.cc')
-rw-r--r-- | gtk2_ardour/axis_view.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/axis_view.cc b/gtk2_ardour/axis_view.cc index 1144fb1e68..5e0a50fdf7 100644 --- a/gtk2_ardour/axis_view.cc +++ b/gtk2_ardour/axis_view.cc @@ -80,12 +80,9 @@ AxisView::marked_for_display () const bool AxisView::set_marked_for_display (bool yn) { - if (yn != marked_for_display()) { - if (yn) { - set_gui_property ("visible", true); - } else { - set_gui_property ("visible", false); - } + string const v = gui_property ("visible"); + if (v == "" || yn != string_is_affirmative (v)) { + set_gui_property ("visible", yn); return true; // things changed } |