summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-06-11 18:53:35 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-06-11 18:53:35 +0000
commit4c15ea8f3e7635bd9a40ab65bccc0261f977c46e (patch)
tree9fe743a2c1e0538fc07622cb2484db959508c9cc /src/extension/extension.cpp
parentid-clash: clean up code (diff)
downloadinkscape-4c15ea8f3e7635bd9a40ab65bccc0261f977c46e.tar.gz
inkscape-4c15ea8f3e7635bd9a40ab65bccc0261f977c46e.zip
Extensions. Fix for Bug #505920 (inkscape loads extension even if the script specified in <command> doesn't exist).
Fixed bugs: - https://launchpad.net/bugs/505920 (bzr r13421)
Diffstat (limited to 'src/extension/extension.cpp')
-rw-r--r--src/extension/extension.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index 588efb521..06e35ff3e 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -111,6 +111,9 @@ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementat
if (!strcmp(chname, "dependency")) {
_deps.push_back(new Dependency(child_repr));
} /* dependency */
+ if (!strcmp(chname, "script")) {
+ _deps.push_back(new Dependency(child_repr->firstChild()));
+ } /* check command as a dependency (see LP #505920) */
if (!strcmp(chname, "options")) {
silent = !strcmp( child_repr->attribute("silent"), "true" );
}