diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-02-26 23:35:45 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:42:11 +0000 |
| commit | cf0e762fa380de08b8f3043b4e9c0b3c33fd817b (patch) | |
| tree | 0791e9eda32f35a633b0dd7112091556c0eacf8c /src/extension/implementation | |
| parent | Fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60693688 (diff) | |
| download | inkscape-cf0e762fa380de08b8f3043b4e9c0b3c33fd817b.tar.gz inkscape-cf0e762fa380de08b8f3043b4e9c0b3c33fd817b.zip | |
fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271
Diffstat (limited to 'src/extension/implementation')
| -rw-r--r-- | src/extension/implementation/implementation.h | 11 |
1 files changed, 11 insertions, 0 deletions
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; }; |
