diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-06-11 20:18:39 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-06-11 20:18:39 +0000 |
| commit | 7dcf55a463d88f0be28957dc9ccd2ba02dfbfdc6 (patch) | |
| tree | a208a2b273935dc31bdb737a8c026dbd9eafa159 /src/extension/implementation/script.cpp | |
| parent | tweaks (diff) | |
| download | inkscape-7dcf55a463d88f0be28957dc9ccd2ba02dfbfdc6.tar.gz inkscape-7dcf55a463d88f0be28957dc9ccd2ba02dfbfdc6.zip | |
fix crashing on additional data dialog when running input or effect extension from command line
(bzr r5890)
Diffstat (limited to '')
| -rw-r--r-- | src/extension/implementation/script.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 4c705f5cf..7955d90ff 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -53,6 +53,7 @@ FIXME: #include "extension/db.h" #include "script.h" #include "dialogs/dialog-events.h" +#include "application/application.h" #include "util/glib-list-iterators.h" @@ -1047,7 +1048,9 @@ Script::execute (const std::list<std::string> &in_command, } Glib::ustring stderr_data = fileerr.string(); - if (stderr_data.length() != 0) { + if (stderr_data.length() != 0 && + Inkscape::NSApplication::Application::getUseGui() + ) { checkStderr(stderr_data, Gtk::MESSAGE_INFO, _("Inkscape has received additional data from the script executed. " "The script did not return an error, but this may indicate the results will not be as expected.")); |
