From bb3261782fa74919c3ee34baf60dc09da61aff1e Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sun, 13 Oct 2019 20:02:49 +0200 Subject: Extensions: Improve logic to lookup script extensions - Use identical logic for looking up s and s. - Remove duplicate (but inconsistent and incomplete) logic from script.cpp that was used to search for the again - Remove element from .inx format It seems unused (at the very least by core extensions) and redundant to checking - Deprecate the -specific "reldir" attribute. Consistently use the functionally identical "location" attribute that was only used for s before - Introduce the new relative location value location="inx", which looks up and s relative to the .inx file's location. --- src/extension/loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extension/loader.cpp') 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 ){ -- cgit v1.2.3