13
0

Fix crossfade visibility on startup so that it respects the configured setting.

git-svn-id: svn://localhost/ardour2/branches/3.0@7757 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-09-09 01:38:02 +00:00
parent d0220523f8
commit db680ab6d3
2 changed files with 5 additions and 6 deletions

View File

@ -61,7 +61,7 @@ using namespace Editing;
AudioStreamView::AudioStreamView (AudioTimeAxisView& tv)
: StreamView (tv)
{
crossfades_visible = true;
crossfades_visible = tv.session()->config.get_xfades_visible ();
color_handler ();
_amplitude_above_axis = 1.0;
@ -329,7 +329,7 @@ AudioStreamView::add_crossfade (boost::weak_ptr<Crossfade> wc)
cv->set_valid (true);
crossfade->Invalidated.connect (*this, invalidator (*this), ui_bind (&AudioStreamView::remove_crossfade, this, _1), gui_context());
crossfade_views[cv->crossfade] = cv;
if (!_trackview.session()->config.get_xfades_visible() || !crossfades_visible) {
if (!crossfades_visible) {
cv->hide ();
}
@ -795,8 +795,6 @@ AudioStreamView::update_contents_height ()
void
AudioStreamView::update_content_height (CrossfadeView* cv)
{
cv->show ();
if (_layer_display == Overlaid) {
cv->set_y (0);

View File

@ -185,7 +185,7 @@ CrossfadeView::redraw_curves ()
p.set_x (i + 1);
p.set_y (_height - ((_height - 2) * vec[i]));
}
fade_in->property_points() = *points;
crossfade->fade_out().curve().get_vector (0, crossfade->length(), vec, npoints);
@ -246,8 +246,9 @@ CrossfadeView::upper_regionview () const
void
CrossfadeView::show ()
{
group->show();
_visible = true;
group->show();
redraw_curves ();
}
void