summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-09-02 11:44:24 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-09-02 11:44:24 +0000
commitf3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29 (patch)
treed1805e95061edbd14d3b07eee362f6ecd44f70fc /src/extension/implementation
parentExtensions. Fix for bug #837603 (Simplestyle extension helper breaks on space... (diff)
downloadinkscape-f3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29.tar.gz
inkscape-f3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29.zip
Extensions. Fix for a potential crasher in the extension scripts.
(bzr r10611)
Diffstat (limited to 'src/extension/implementation')
-rw-r--r--src/extension/implementation/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index cac67844f..e4d850e5f 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -736,7 +736,7 @@ void Script::effect(Inkscape::Extension::Effect *module,
SPNamedView *nv = (SPNamedView *) obj;
//Check if it has a default layer set up
- if ( nv->default_layer_id != 0 ) {
+ if ( nv != NULL and nv->default_layer_id != 0 ) {
SPDocument *document = desktop->doc();
//If so, get that layer
layer = document->getObjectById(g_quark_to_string(nv->default_layer_id));