From: johanengelen Date: Mon, 2 Jun 2008 20:01:04 +0000 (+0000) Subject: fix crash, report warnings instead. trying to find real cause for this (crash on... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2dcdc01dfe5ed43500f0d16eea9c0c022a5f1a4;p=inkscape.git fix crash, report warnings instead. trying to find real cause for this (crash on copying path with lpestack). --- 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