summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-17 23:52:33 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-17 23:52:33 +0000
commit677739f03f65d5f9fa59df15b7306e9dbebc7fbe (patch)
tree5a8dc3dcc6a6d3fa661e77c2c839af13cd2f1e28 /src/live_effects/effect.cpp
parentMerged from Poppler's Gfx.cc; Unset the font if it doesn't exist or we can no... (diff)
downloadinkscape-677739f03f65d5f9fa59df15b7306e9dbebc7fbe.tar.gz
inkscape-677739f03f65d5f9fa59df15b7306e9dbebc7fbe.zip
Fix exception catching, to allow polymorphism. Note to all: always catch by reference! 17.7 of C++FAQlite
(bzr r4099)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 4ccfa5952..8b0a2f62a 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -144,7 +144,7 @@ Effect::doEffect_nartbpath (NArtBpath * path_in)
return new_bpath;
}
- catch (std::exception e) {
+ 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.") );