Revert inadvertently pushed commit
[ardour.git] / gtk2_ardour / rhythm_ferret.cc
index f1593310183595e34c5658e0787749cb8e970f6d..e257f56b52479fa15039c2ceb796e91b4c1f0f8d 100644 (file)
@@ -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 */
 }