cleanup a couple of audio file format names as reported by libsndfile
[ardour.git] / gtk2_ardour / redirect_automation_time_axis.cc
index e527fd1d5e9123fee2cdc8e2e6389fd6da1b4ce7..65ef2b6fe34e9f228ee8bfedf74a7d9a07a03314 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include <ardour/redirect.h>
@@ -61,7 +60,7 @@ RedirectAutomationTimeAxisView::RedirectAutomationTimeAxisView (Session& s, boos
                
                        XMLProperty *shown = (*iter)->property("shown_editor");
                        
-                       if (shown && shown->value() == "yes") {
+                       if (shown && string_is_affirmative (shown->value())) {
                                _marked_for_display = true;
                        }
                        break;
@@ -74,7 +73,7 @@ RedirectAutomationTimeAxisView::~RedirectAutomationTimeAxisView ()
 }
 
 void
-RedirectAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkEvent* event, jack_nframes_t when, double y)
+RedirectAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkEvent* event, nframes_t when, double y)
 {
        double x = 0;
 
@@ -102,7 +101,7 @@ RedirectAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item,
                 XMLNode &before = alist.get_state();
                alist.add (when, y);
                 XMLNode &after = alist.get_state();
-                _session.add_command(new MementoCommand<AutomationList>(alist, before, after));
+                _session.add_command(new MementoCommand<AutomationList>(alist, &before, &after));
                _session.commit_reversible_command ();
                _session.set_dirty ();
        }