summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-10-14 19:29:10 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-10-14 19:29:10 +0000
commitee527cbb228c6fba9c83bba5058d1a68ac647060 (patch)
tree0e9e4884b2df7686214403b3a7707fe91e9a68ba /src/sp-item.cpp
parentRemove deprecated GNOME VFS (diff)
downloadinkscape-ee527cbb228c6fba9c83bba5058d1a68ac647060.tar.gz
inkscape-ee527cbb228c6fba9c83bba5058d1a68ac647060.zip
Fixing problems with nested LPE and convert to paths
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index a780f1a29..3fef28e5b 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -1406,9 +1406,11 @@ void SPItem::adjust_livepatheffect (Geom::Affine const &postmul, bool set)
for (PathEffectList::iterator it = effect_list.begin(); it != effect_list.end(); ++it)
{
LivePathEffectObject *lpeobj = (*it)->lpeobject;
- if (lpeobj && lpeobj->get_lpe()) {
- Inkscape::LivePathEffect::Effect * effect = lpeobj->get_lpe();
- effect->transform_multiply(postmul, set);
+ if (lpeobj) {
+ Inkscape::LivePathEffect::Effect * lpe = lpeobj->get_lpe();
+ if (lpe && lpe->isReady()) {
+ lpe->transform_multiply(postmul, set);
+ }
}
}
}