summaryrefslogtreecommitdiffstats
path: root/src/extension/effect.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2007-03-01 07:14:01 +0000
committergouldtj <gouldtj@users.sourceforge.net>2007-03-01 07:14:01 +0000
commit96d40c206e6e469287e7c790b6ecfbd36b7593e1 (patch)
tree36574180c812efd8ffc4364403c0fde6b5961298 /src/extension/effect.cpp
parentr14577@tres: ted | 2007-02-27 18:51:05 -0800 (diff)
downloadinkscape-96d40c206e6e469287e7c790b6ecfbd36b7593e1.tar.gz
inkscape-96d40c206e6e469287e7c790b6ecfbd36b7593e1.zip
r14578@tres: ted | 2007-02-27 18:59:35 -0800
Protecting against the posibility of the INKSCAPE variable being NULL (bzr r2475)
Diffstat (limited to 'src/extension/effect.cpp')
-rw-r--r--src/extension/effect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp
index 1fef1a9db..0f9434c17 100644
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
@@ -67,8 +67,9 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
} // children of "inkscape-extension"
} // if we have an XML file
- if (_effects_list == NULL)
+ if (_effects_list == NULL && INKSCAPE != NULL) {
find_effects_list(inkscape_get_menus(INKSCAPE));
+ }
if (_effects_list != NULL) {
Inkscape::XML::Document *xml_doc;