diff options
author | David Robillard <d@drobilla.net> | 2016-09-18 21:26:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-18 21:26:25 -0400 |
commit | 01deca45d8aa5fbfff75e204cd248a9dd79ab041 (patch) | |
tree | b35be9ac77d874a2a596ec089c95cdb1886f2450 /src/gui | |
parent | 42cf4f8ce310d2e7c7e349d8b48b6279d767478e (diff) | |
download | ingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.tar.gz ingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.tar.bz2 ingen-01deca45d8aa5fbfff75e204cd248a9dd79ab041.zip |
Fix undo of large pastes
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 4 |
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 |