diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-14 16:25:16 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-14 16:25:16 +0000 |
| commit | cf5a243070e32b9b68f7fac9e124bb955ccc938a (patch) | |
| tree | cafb42f2678dd653087051c99e22cba529271b8b /src/live_effects/effect.cpp | |
| parent | fix typo in feed_path_to_cairo, potential bug (diff) | |
| download | inkscape-cf5a243070e32b9b68f7fac9e124bb955ccc938a.tar.gz inkscape-cf5a243070e32b9b68f7fac9e124bb955ccc938a.zip | |
put exception catch block around all doEffect calls. (so in SP_LPE_ITEM)
(bzr r5938)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 6103a3d18..551b23a1d 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -21,8 +21,6 @@ #include <glibmm/i18n.h> #include "pen-context.h" #include "tools-switch.h" -#include "message-stack.h" -#include "desktop.h" #include "live_effects/lpeobject.h" #include "live_effects/parameter/parameter.h" @@ -279,20 +277,9 @@ Effect::acceptParamPath (SPPath *param_path) { void Effect::doEffect (SPCurve * curve) { - NArtBpath const *bpath_in = curve->get_bpath(); - - std::vector<Geom::Path> result_pathv; + std::vector<Geom::Path> orig_pathv = curve->get_pathvector(); - try { - std::vector<Geom::Path> orig_pathv = BPath_to_2GeomPath(bpath_in); - - result_pathv = doEffect_path(orig_pathv); - } - catch (std::exception & e) { - g_warning("Exception during LPE %s execution. \n %s", getName().c_str(), e.what()); - SP_ACTIVE_DESKTOP->messageStack()->flash( Inkscape::WARNING_MESSAGE, - _("An exception occurred during execution of the Path Effect.") ); - } + std::vector<Geom::Path> result_pathv = doEffect_path(orig_pathv); curve->set_pathv(result_pathv); } |
