From 90dd89530831586fc00d223e957f1990004abee9 Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Mon, 29 May 2006 08:34:57 +0000 Subject: handle request for not-compiled-in internal scripting; execute didn't check return value; fixes #1495283 (bzr r1062) --- src/ui/dialog/scriptdialog.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/dialog/scriptdialog.cpp b/src/ui/dialog/scriptdialog.cpp index a0f7f4337..483677464 100644 --- a/src/ui/dialog/scriptdialog.cpp +++ b/src/ui/dialog/scriptdialog.cpp @@ -1,9 +1,4 @@ /* - * This dialog is for launching scripts whose main purpose if - * the scripting of Inkscape itself. - * - * Authors: - * Bob Jamison * Other dudes from The Inkscape Organization * * Copyright (C) 2004, 2005 Authors @@ -146,7 +141,8 @@ lang) Glib::ustring output; Glib::ustring error; Inkscape::Extension::Script::InkscapeScript engine; - engine.interpretScript(script, output, error, lang); + bool ok = engine.interpretScript(script, output, error, lang); + if (!ok) return; outputText.get_buffer()->set_text(output); errorText.get_buffer()->set_text(error); } -- cgit v1.2.3