From 677739f03f65d5f9fa59df15b7306e9dbebc7fbe Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 17 Nov 2007 23:52:33 +0000 Subject: Fix exception catching, to allow polymorphism. Note to all: always catch by reference! 17.7 of C++FAQlite (bzr r4099) --- src/live_effects/effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/live_effects/effect.cpp') 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.") ); -- cgit v1.2.3