diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2011-03-04 15:57:04 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2011-03-04 15:57:04 +0000 |
| commit | ff48e858e196274501b82872555d9464d7c7119f (patch) | |
| tree | 4e874af72fe6e1adce8b6868c28e0bc3a2dc594c /src/extension/implementation/xslt.cpp | |
| parent | Fix for build on OS X. Fixes bug 707205. (diff) | |
| download | inkscape-ff48e858e196274501b82872555d9464d7c7119f.tar.gz inkscape-ff48e858e196274501b82872555d9464d7c7119f.zip | |
Extensions. Fix for Bug #341353 (The user must know about a XSLT problem).
Fixed bugs:
- https://launchpad.net/bugs/341353
(bzr r10079)
Diffstat (limited to 'src/extension/implementation/xslt.cpp')
| -rw-r--r-- | src/extension/implementation/xslt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/extension/implementation/xslt.cpp b/src/extension/implementation/xslt.cpp index 762051339..8b6e6c701 100644 --- a/src/extension/implementation/xslt.cpp +++ b/src/extension/implementation/xslt.cpp @@ -219,8 +219,7 @@ XSLT::save(Inkscape::Extension::Output */*module*/, SPDocument *doc, gchar const xmlDocPtr newdoc = xsltApplyStylesheet(_stylesheet, svgdoc, params); //xmlSaveFile(filename, newdoc); - xsltSaveResultToFilename(filename, newdoc, _stylesheet, 0); - + int success = xsltSaveResultToFilename(filename, newdoc, _stylesheet, 0); xmlFreeDoc(newdoc); xmlFreeDoc(svgdoc); @@ -228,6 +227,10 @@ XSLT::save(Inkscape::Extension::Output */*module*/, SPDocument *doc, gchar const xsltCleanupGlobals(); xmlCleanupParser(); + if (success < 1) { + throw Inkscape::Extension::Output::save_failed(); + } + return; } |
