summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-18 21:26:25 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 21:26:25 -0400
commit01deca45d8aa5fbfff75e204cd248a9dd79ab041 (patch)
treeb35be9ac77d874a2a596ec089c95cdb1886f2450 /src
parent42cf4f8ce310d2e7c7e349d8b48b6279d767478e (diff)
downloadingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.tar.gz
ingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.tar.bz2
ingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.zip
Fix undo of large pastes
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphCanvas.cpp4
1 files changed, 4 insertions, 0 deletions
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