summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-02 20:01:04 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-02 20:01:04 +0000
commitd73624c43dcd322f376b62a3b77d5882bc9fbd41 (patch)
treeddf3d18c2a93b494d73f3b58d3392eb5f02eb51c /src
parentcheck if item is LPEItem before casting!!! should fix bug 236788 (diff)
downloadinkscape-d73624c43dcd322f376b62a3b77d5882bc9fbd41.tar.gz
inkscape-d73624c43dcd322f376b62a3b77d5882bc9fbd41.zip
fix crash, report warnings instead. trying to find real cause for this (crash on copying path with lpestack).
(bzr r5792)
Diffstat (limited to 'src')
-rw-r--r--src/sp-lpe-item.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index bf9828b15..dce942934 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -277,6 +277,14 @@ void sp_lpe_item_perform_path_effect(SPLPEItem *lpeitem, SPCurve *curve) {
for (PathEffectList::iterator it = lpeitem->path_effect_list->begin(); it != lpeitem->path_effect_list->end(); ++it)
{
LivePathEffectObject *lpeobj = (*it)->lpeobject;
+ if (!lpeobj) {
+ g_warning("sp_lpe_item_perform_path_effect - NULL lpeobj in list!");
+ return;
+ }
+ if (!lpeobj->lpe) {
+ g_warning("sp_lpe_item_perform_path_effect - lpeobj without lpe!");
+ return;
+ }
if (lpeobj->lpe->isVisible()) {
// Groups have their doBeforeEffect called elsewhere