summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-04 00:12:20 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-04 00:12:20 +0000
commitc00ad23d717a27aae178ec5b3faafb8c55d829cd (patch)
treee573a3990fbc5f0fa30dac26f7006261212afd33 /src
parentinkscape: (diff)
downloadinkscape-c00ad23d717a27aae178ec5b3faafb8c55d829cd.tar.gz
inkscape-c00ad23d717a27aae178ec5b3faafb8c55d829cd.zip
Fix bug [ 1811188 ] save as PS/EPS crashes
(bzr r4023)
Diffstat (limited to 'src')
-rw-r--r--src/extension/prefdialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp
index 9ee9b08cd..d9596986d 100644
--- a/src/extension/prefdialog.cpp
+++ b/src/extension/prefdialog.cpp
@@ -200,9 +200,14 @@ PrefDialog::pinned_toggle (void) {
void
PrefDialog::on_response (int signal) {
+ if (!_exEnv) {
+ // apparantly this effect does not use the new ExecutionEnv stuff.
+ // _param_pinned and _effect will be null, and the code below will crash: return here!
+ return;
+ }
//printf("Got signal %d\n", signal);
if (!_param_pinned->get_bool(NULL, NULL)) {
- // Not my job if we're not pinned
+ // Not my job if we're not pinned (either not pinned, or not even a pinned checkbox)
// It's the execution environment's job
return;
}