diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-02 20:01:04 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-02 20:01:04 +0000 |
| commit | d73624c43dcd322f376b62a3b77d5882bc9fbd41 (patch) | |
| tree | ddf3d18c2a93b494d73f3b58d3392eb5f02eb51c /src | |
| parent | check if item is LPEItem before casting!!! should fix bug 236788 (diff) | |
| download | inkscape-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.cpp | 8 |
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 |
