diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-02-27 00:01:23 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:42:11 +0000 |
| commit | a45afbdbffb81b567de372741f1f08c70244dc53 (patch) | |
| tree | aab3282e4e7a75c5749c6343f4e05bd179944ccd /src/extension/implementation/implementation.cpp | |
| parent | fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271 (diff) | |
| download | inkscape-a45afbdbffb81b567de372741f1f08c70244dc53.tar.gz inkscape-a45afbdbffb81b567de372741f1f08c70244dc53.zip | |
fix compiling bugs
Diffstat (limited to 'src/extension/implementation/implementation.cpp')
| -rw-r--r-- | src/extension/implementation/implementation.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/extension/implementation/implementation.cpp b/src/extension/implementation/implementation.cpp index 6e6100d2b..38a6c1162 100644 --- a/src/extension/implementation/implementation.cpp +++ b/src/extension/implementation/implementation.cpp @@ -27,6 +27,23 @@ namespace Inkscape { namespace Extension { namespace Implementation { +void +ImplementationDocumentCache::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(); + } + } + } +} + Gtk::Widget * Implementation::prefs_input(Inkscape::Extension::Input *module, gchar const */*filename*/) { return module->autogui(NULL, NULL); |
