From 0dee6d6d756e28e534a554df314cc09b3b600916 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 26 Apr 2011 15:20:56 +0000 Subject: [PATCH] fix nasty bug caused by incorrect checking of list contents git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9433 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/automation_event.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc index e17f9fb91b..2f35fa3345 100644 --- a/libs/ardour/automation_event.cc +++ b/libs/ardour/automation_event.cc @@ -320,7 +320,7 @@ AutomationList::write_pass_finished (double when) { //if fader is in Write, we need to put an automation point to mark the last place we rolled. if ( (_state & Auto_Write) ) { - if ( nascent.back() && !nascent.back()->events.empty() ) { + if ( !nascent.empty() && !nascent.back()->events.empty() ) { rt_add( when, nascent.back()->events.back()->value ); } }