From: johanengelen Date: Tue, 30 Oct 2007 23:40:31 +0000 (+0000) Subject: temporary fix for crash with shapes and path-along-path LPE X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d0b1ec6662ba61ec00d5217a994f9fda6b48fd52;p=inkscape.git temporary fix for crash with shapes and path-along-path LPE --- diff --git a/src/live_effects/lpe-pathalongpath.cpp b/src/live_effects/lpe-pathalongpath.cpp index 0e9be8f16..cd9c433f7 100644 --- a/src/live_effects/lpe-pathalongpath.cpp +++ b/src/live_effects/lpe-pathalongpath.cpp @@ -9,6 +9,7 @@ #include "live_effects/lpe-pathalongpath.h" #include "sp-shape.h" #include "sp-item.h" +#include "sp-path.h" #include "display/curve.h" #include #include @@ -159,6 +160,8 @@ LPEPathAlongPath::doEffect (Geom::Piecewise > & pwd2_in) void LPEPathAlongPath::resetDefaults(SPItem * item) { + if (!SP_IS_PATH(item)) return; + using namespace Geom; // set the bend path to run horizontally in the middle of the bounding box of the original path