summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp7
1 files 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 *