diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2014-06-11 18:53:35 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2014-06-11 18:53:35 +0000 |
| commit | 4c15ea8f3e7635bd9a40ab65bccc0261f977c46e (patch) | |
| tree | 9fe743a2c1e0538fc07622cb2484db959508c9cc /src/extension/extension.cpp | |
| parent | id-clash: clean up code (diff) | |
| download | inkscape-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.cpp | 3 |
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" ); } |
