From: johanengelen Date: Sun, 4 Nov 2007 00:12:20 +0000 (+0000) Subject: Fix bug [ 1811188 ] save as PS/EPS crashes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3fbc4e85ba5509840d49e33bae9e9fa94f887ab8;p=inkscape.git Fix bug [ 1811188 ] save as PS/EPS crashes --- 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; }