From 01deca45d8aa5fbfff75e204cd248a9dd79ab041 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Sep 2016 21:26:25 -0400 Subject: Fix undo of large pastes --- src/gui/GraphCanvas.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui') diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index b81960ef..54a7b341 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -707,6 +707,8 @@ GraphCanvas::paste() const int paste_x = widget_point_x + scroll_x + (20.0f * _paste_count); const int paste_y = widget_point_y + scroll_y + (20.0f * _paste_count); + _app.interface()->bundle_begin(); + // Put each top level object in the clipboard store ClashAvoider avoider(*_app.store().get()); for (const auto& c : clipboard) { @@ -750,6 +752,8 @@ GraphCanvas::paste() avoider.map_path(parent.child(a.second->tail_path())), avoider.map_path(parent.child(a.second->head_path()))); } + + _app.interface()->bundle_end(); } void -- cgit v1.2.1