Code

LPE Spiro: don't catch all exceptions, only the ContinuityError
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 22 Jun 2008 22:12:38 +0000 (22:12 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 22 Jun 2008 22:12:38 +0000 (22:12 +0000)
src/live_effects/lpe-spiro.cpp

index 6c3b71af483e0d54a35e4a1cc5b2053553551345..0ffe6a7f48505e451ce70151649310035467ba65 100644 (file)
@@ -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.") );