13
0

Fix setup of gain envelope visible menu item.

git-svn-id: svn://localhost/ardour2/branches/3.0@10939 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-12-07 18:18:46 +00:00
parent 5700d10890
commit 5ef06dd439

View File

@ -1045,12 +1045,16 @@ Editor::sensitize_the_right_region_actions ()
its current setting.
*/
have_envelope_invisible = true;
have_envelope_invisible = false;
if (*i) {
AudioRegionView* arv = dynamic_cast<AudioRegionView*> (*i);
if (arv && arv->envelope_visible()) {
have_envelope_visible = true;
if (arv) {
if (arv->envelope_visible()) {
have_envelope_visible = true;
} else {
have_envelope_invisible = true;
}
}
}