fix breakage for region copy (ctrl-c) operation
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Jun 2011 23:01:00 +0000 (23:01 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Jun 2011 23:01:00 +0000 (23:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9734 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_ops.cc

index 9c541191b4f8a908f3b4c5222a50c7cc69c11896..2427f53962a0654a6e44dbf4b8266ab7e9ce5544 100644 (file)
@@ -3519,7 +3519,6 @@ Editor::cut_copy (CutCopyOp op)
                                                selection->clear_points ();
                                        }
                                }
-
                                commit_reversible_command ();
                                break; // terminate case statement here
                        }
@@ -3807,8 +3806,10 @@ Editor::cut_copy_regions (CutCopyOp op, RegionSelection& rs)
                case Copy:
                        /* copy region before adding, so we're not putting same object into two different playlists */
                        npl->add_region (RegionFactory::create (r), r->position() - first_position);
-                                       case Clear:
-                       pl->remove_region (r);
+                       break;
+
+               case Clear:
+                       pl->remove_region (r);  
                        break;
                }