diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2011-09-02 11:44:24 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2011-09-02 11:44:24 +0000 |
| commit | f3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29 (patch) | |
| tree | d1805e95061edbd14d3b07eee362f6ecd44f70fc | |
| parent | Extensions. Fix for bug #837603 (Simplestyle extension helper breaks on space... (diff) | |
| download | inkscape-f3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29.tar.gz inkscape-f3e6d16ac75e7d1808cd49f6bbd4066dcb63ec29.zip | |
Extensions. Fix for a potential crasher in the extension scripts.
(bzr r10611)
| -rw-r--r-- | src/extension/implementation/script.cpp | 2 |
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)); |
