diff options
| author | Adib Taraben <theadib@gmail.com> | 2008-02-20 22:14:48 +0000 |
|---|---|---|
| committer | theadib <theadib@users.sourceforge.net> | 2008-02-20 22:14:48 +0000 |
| commit | b29cb6643b2f54e7a5eb566022cd1334f7c8d3b3 (patch) | |
| tree | 737ab0fa0a7edf706532d0186fe2b6ba7f1a55d5 /src/extension/prefdialog.cpp | |
| parent | Fixed an issue with the use of Q_ macro as introduced in rev 17415 (diff) | |
| download | inkscape-b29cb6643b2f54e7a5eb566022cd1334f7c8d3b3.tar.gz inkscape-b29cb6643b2f54e7a5eb566022cd1334f7c8d3b3.zip | |
pointer check, to prevent rapid crash on pdf/ps-export
(bzr r4793)
Diffstat (limited to 'src/extension/prefdialog.cpp')
| -rw-r--r-- | src/extension/prefdialog.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index 5a3204967..280269ec2 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -33,7 +33,7 @@ namespace Extension { \param name Name of the Extension who's dialog this is \param help The help string for the extension (NULL if none) \param controls The extension specific widgets in the dialog - + This function initializes the dialog with the name of the extension in the title. It adds a few buttons and sets up handlers for them. It also places the passed in widgets into the dialog. @@ -68,8 +68,8 @@ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * co _button_ok->set_use_stock(true); set_default_response(Gtk::RESPONSE_OK); _button_ok->grab_focus(); - - // If we're working with an effect that can be live and + + // If we're working with an effect that can be live and // the dialog can be pinned, put those options in too if (_exEnv != NULL) { if (_param_preview == NULL) { @@ -173,7 +173,10 @@ PrefDialog::on_response (int signal) { } if (signal == Gtk::RESPONSE_OK) { - _effect->effect(SP_ACTIVE_DESKTOP); + if(_effect != NULL) + { + _effect->effect(SP_ACTIVE_DESKTOP); + } } if (signal == Gtk::RESPONSE_CANCEL) { // close the dialog |
