summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2011-04-26 15:20:56 +0000
committerBen Loftis <ben@glw.com>2011-04-26 15:20:56 +0000
commit0dee6d6d756e28e534a554df314cc09b3b600916 (patch)
treea8030bb566f0dbcdd0bc10330f72fdb138f72bf9
parent72f9b8400ee57c7ddf07579aa5b9c50bfafbfef8 (diff)
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
-rw-r--r--libs/ardour/automation_event.cc2
1 files changed, 1 insertions, 1 deletions
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 );
}
}