From d0b1ec6662ba61ec00d5217a994f9fda6b48fd52 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 30 Oct 2007 23:40:31 +0000 Subject: [PATCH] temporary fix for crash with shapes and path-along-path LPE --- src/live_effects/lpe-pathalongpath.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2