Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Inkscape
inkscape
Commits
608fa56e
Commit
608fa56e
authored
Nov 30, 2017
by
Patrick Storz
🦄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions: Don't crash on invalid effect extension output
(cherry picked from commit
f0be34d4
)
parent
79c37399
Pipeline
#14588957
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/extension/implementation/script.cpp
src/extension/implementation/script.cpp
+8
-3
No files found.
src/extension/implementation/script.cpp
View file @
608fa56e
...
...
@@ -749,9 +749,14 @@ void Script::effect(Inkscape::Extension::Effect *module,
SPDocument
*
mydoc
=
NULL
;
if
(
data_read
>
10
)
{
mydoc
=
Inkscape
::
Extension
::
open
(
Inkscape
::
Extension
::
db
.
get
(
SP_MODULE_KEY_INPUT_SVG
),
tempfilename_out
.
c_str
());
try
{
mydoc
=
Inkscape
::
Extension
::
open
(
Inkscape
::
Extension
::
db
.
get
(
SP_MODULE_KEY_INPUT_SVG
),
tempfilename_out
.
c_str
());
}
catch
(
const
Inkscape
::
Extension
::
Input
::
open_failed
&
e
)
{
/// \todo Popup dialog here
g_warning
(
"Extension returned output that could not be parsed: %s"
,
e
.
what
());
}
}
// data_read
pump_events
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment