13
0

Fix visibility of MIDI CC automation lanes (#4356).

git-svn-id: svn://localhost/ardour2/branches/3.0@10195 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2011-10-07 19:30:44 +00:00
parent 212de13d42
commit 18e9540ea3

View File

@ -80,12 +80,9 @@ AxisView::marked_for_display () const
bool bool
AxisView::set_marked_for_display (bool yn) AxisView::set_marked_for_display (bool yn)
{ {
if (yn != marked_for_display()) { string const v = gui_property ("visible");
if (yn) { if (v == "" || yn != string_is_affirmative (v)) {
set_gui_property ("visible", true); set_gui_property ("visible", yn);
} else {
set_gui_property ("visible", false);
}
return true; // things changed return true; // things changed
} }