From cf0e762fa380de08b8f3043b4e9c0b3c33fd817b Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 27 Feb 2018 00:35:45 +0100 Subject: fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271 --- src/extension/implementation/implementation.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/extension/implementation') diff --git a/src/extension/implementation/implementation.h b/src/extension/implementation/implementation.h index 1232ae0c8..fa4a64725 100644 --- a/src/extension/implementation/implementation.h +++ b/src/extension/implementation/implementation.h @@ -59,6 +59,17 @@ public: ImplementationDocumentCache (Inkscape::UI::View::View * view) : _view(view) { + SPDesktop *desktop = (SPDesktop*)view; + Inkscape::Selection * selection = NULL; + if (desktop) { + selection = desktop->getSelection(); + if (selection && !selection->params.empty()) { + selection->restoreBackup(); + if (!desktop->on_live_extension) { + selection->emptyBackup(); + } + } + } return; }; virtual ~ImplementationDocumentCache ( ) { return; }; -- cgit v1.2.3