Revert inadvertently pushed commit
[ardour.git] / gtk2_ardour / rhythm_ferret.cc
index ec5ebc93a1117d74419e556b506fbac559ab7a83..e257f56b52479fa15039c2ceb796e91b4c1f0f8d 100644 (file)
@@ -273,7 +273,7 @@ RhythmFerret::get_note_onset_function ()
        fatal << string_compose (_("programming error: %1 (%2)"), X_("illegal note onset function string"), txt)
              << endmsg;
 
-       /*NOTREACHED*/
+       abort(); /*NOTREACHED*/
        return -1;
 }
 
@@ -352,7 +352,7 @@ RhythmFerret::do_split_action ()
 
        editor.EditorFreeze(); /* Emit signal */
 
-       _session->begin_reversible_command (_("split regions (rhythm ferret)"));
+       editor.begin_reversible_command (_("split regions (rhythm ferret)"));
 
        /* Merge the transient positions for regions in consideration */
        AnalysisFeatureList merged_features;
@@ -381,7 +381,7 @@ RhythmFerret::do_split_action ()
                i = tmp;
        }
 
-       _session->commit_reversible_command ();
+       editor.commit_reversible_command ();
 
        editor.EditorThaw(); /* Emit signal */
 }