summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-02-27 00:01:23 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-05-09 19:42:11 +0000
commita45afbdbffb81b567de372741f1f08c70244dc53 (patch)
treeaab3282e4e7a75c5749c6343f4e05bd179944ccd /src/extension/implementation
parentfix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271 (diff)
downloadinkscape-a45afbdbffb81b567de372741f1f08c70244dc53.tar.gz
inkscape-a45afbdbffb81b567de372741f1f08c70244dc53.zip
fix compiling bugs
Diffstat (limited to 'src/extension/implementation')
-rw-r--r--src/extension/implementation/implementation.cpp17
-rw-r--r--src/extension/implementation/implementation.h18
2 files changed, 19 insertions, 16 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);
diff --git a/src/extension/implementation/implementation.h b/src/extension/implementation/implementation.h
index fa4a64725..5bb909ef2 100644
--- a/src/extension/implementation/implementation.h
+++ b/src/extension/implementation/implementation.h
@@ -56,22 +56,8 @@ class ImplementationDocumentCache {
*/
Inkscape::UI::View::View * _view;
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;
- };
+ ImplementationDocumentCache (Inkscape::UI::View::View * view);
+
virtual ~ImplementationDocumentCache ( ) { return; };
Inkscape::UI::View::View const * view ( ) { return _view; };
};