From a45afbdbffb81b567de372741f1f08c70244dc53 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 27 Feb 2018 01:01:23 +0100 Subject: fix compiling bugs --- src/extension/implementation/implementation.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/extension/implementation/implementation.cpp') 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); -- cgit v1.2.3