From 3fbc4e85ba5509840d49e33bae9e9fa94f887ab8 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 4 Nov 2007 00:12:20 +0000 Subject: [PATCH] Fix bug [ 1811188 ] save as PS/EPS crashes --- src/extension/prefdialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2