summaryrefslogtreecommitdiffstats
path: root/src/extension/loader.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-10-13 18:02:49 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-10-14 17:36:29 +0000
commitbb3261782fa74919c3ee34baf60dc09da61aff1e (patch)
tree74af4a6da12815aa36d555602d32628fab983161 /src/extension/loader.cpp
parentno "SPString" label for XML editor text nodes (diff)
downloadinkscape-bb3261782fa74919c3ee34baf60dc09da61aff1e.tar.gz
inkscape-bb3261782fa74919c3ee34baf60dc09da61aff1e.zip
Extensions: Improve logic to lookup script extensions
- Use identical logic for looking up <dependency>s and <command>s. - Remove duplicate (but inconsistent and incomplete) logic from script.cpp that was used to search for the <command> again - Remove <check> element from .inx format It seems unused (at the very least by core extensions) and redundant to <dependency> checking - Deprecate the <command>-specific "reldir" attribute. Consistently use the functionally identical "location" attribute that was only used for <dependency>s before - Introduce the new relative location value location="inx", which looks up <dependencies> and <command>s relative to the .inx file's location.
Diffstat (limited to 'src/extension/loader.cpp')
-rw-r--r--src/extension/loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extension/loader.cpp b/src/extension/loader.cpp
index a9270c43c..d409d09ba 100644
--- a/src/extension/loader.cpp
+++ b/src/extension/loader.cpp
@@ -56,7 +56,7 @@ Implementation::Implementation *Loader::load_implementation(Inkscape::XML::Docum
// Deal with dependencies if we have them
if (!strcmp(chname, "dependency")) {
- Dependency dep = Dependency(child_repr);
+ Dependency dep = Dependency(child_repr, nullptr); // TODO: Why is "this" not an extension?
// try to load it
bool success = load_dependency(&dep);
if( !success ){