From: johanengelen Date: Sun, 23 Dec 2007 17:19:53 +0000 (+0000) Subject: fix critical bug #168588 assertion failed, file sp-conn-end.cpp: line 191 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7157489b41afeae486a128ff4d7422928a4ba3a7;p=inkscape.git fix critical bug #168588 assertion failed, file sp-conn-end.cpp: line 191 --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 2f3125a58..ec168f03f 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -597,8 +597,8 @@ sp_item_update(SPObject *object, SPCtx *ctx, guint flags) } } - SPClipPath *clip_path = item->clip_ref->getObject(); - SPMask *mask = item->mask_ref->getObject(); + SPClipPath *clip_path = item->clip_ref ? item->clip_ref->getObject() : NULL; + SPMask *mask = item->mask_ref ? item->mask_ref->getObject() : NULL; if ( clip_path || mask ) { NRRect bbox; @@ -637,7 +637,8 @@ sp_item_update(SPObject *object, SPCtx *ctx, guint flags) } // Update libavoid with item geometry (for connector routing). - item->avoidRef->handleSettingChange(); + if (item->avoidRef) + item->avoidRef->handleSettingChange(); } static Inkscape::XML::Node *