summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-10-30 23:40:31 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-10-30 23:40:31 +0000
commitc889e2f5f21b82154de22d1ae68e6ffe96b10f72 (patch)
treebc7bfad2988144b735d3f7f01c3ff8850004e6c5 /src
parentok. so NOW the new effect is committed... (diff)
downloadinkscape-c889e2f5f21b82154de22d1ae68e6ffe96b10f72.tar.gz
inkscape-c889e2f5f21b82154de22d1ae68e6ffe96b10f72.zip
temporary fix for crash with shapes and path-along-path LPE
(bzr r3985)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-pathalongpath.cpp3
1 files changed, 3 insertions, 0 deletions
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 <libnr/n-art-bpath.h>
#include <libnr/nr-matrix-fns.h>
@@ -159,6 +160,8 @@ LPEPathAlongPath::doEffect (Geom::Piecewise<Geom::D2<Geom::SBasis> > & 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