Add assert.
authorCarl Hetherington <carl@carlh.net>
Wed, 20 Apr 2011 01:24:17 +0000 (01:24 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 20 Apr 2011 01:24:17 +0000 (01:24 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9385 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/automation_list.cc

index 5f18bbcebba1fc242866209fbe8bf50854459700..1cda99d76391e18c3dc3002492d690eb0881dd56 100644 (file)
@@ -225,6 +225,8 @@ AutomationList::stop_touch (bool mark, double when)
                         
                         /* nascent info created in start touch but never used. just get rid of it.
                          */
+
+                       assert (!nascent.empty ());
                         
                         NascentInfo* ninfo = nascent.back ();
                         nascent.erase (nascent.begin());