summaryrefslogtreecommitdiffstats
path: root/src/extension/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/system.cpp')
-rw-r--r--src/extension/system.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/extension/system.cpp b/src/extension/system.cpp
index 5a77ac28e..6b8e80d3c 100644
--- a/src/extension/system.cpp
+++ b/src/extension/system.cpp
@@ -490,11 +490,8 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
}
case MODULE_PLUGIN: {
Inkscape::Extension::Loader loader = Inkscape::Extension::Loader();
- loader.setBaseDirectory ( Inkscape::Application::profile_path("extensions"));
- imp = loader.LoadImplementation(doc);
- if( imp != NULL) {
- return new Extension(repr, imp);
- }
+ loader.set_base_directory ( Inkscape::Application::profile_path("extensions"));
+ imp = loader.load_implementation(doc);
break;
}
default: {
@@ -529,6 +526,7 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
break;
}
default: {
+ module = new Extension(repr, imp);
break;
}
}