From 7157489b41afeae486a128ff4d7422928a4ba3a7 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 23 Dec 2007 17:19:53 +0000 Subject: [PATCH] fix critical bug #168588 assertion failed, file sp-conn-end.cpp: line 191 --- src/sp-item.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 * -- 2.30.2