From: johanengelen Date: Sun, 22 Jun 2008 22:12:38 +0000 (+0000) Subject: LPE Spiro: don't catch all exceptions, only the ContinuityError X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=36344b348a63929da0addbc6f5c132d4f834b3ee;p=inkscape.git LPE Spiro: don't catch all exceptions, only the ContinuityError --- diff --git a/src/live_effects/lpe-spiro.cpp b/src/live_effects/lpe-spiro.cpp index 6c3b71af4..0ffe6a7f4 100644 --- a/src/live_effects/lpe-spiro.cpp +++ b/src/live_effects/lpe-spiro.cpp @@ -207,7 +207,7 @@ LPESpiro::doEffect(SPCurve * curve) try { curve->get_pathvector() * Geom::identity(); // tests for continuity, this makes LPE Spiro slower of course :-( } - catch (std::exception & e) { + catch (Geom::ContinuityError & e) { g_warning("Exception during LPE Spiro execution. \n %s", e.what()); SP_ACTIVE_DESKTOP->messageStack()->flash( Inkscape::WARNING_MESSAGE, _("An exception occurred during execution of the Spiro Path Effect.") );