summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e80042)
raw | patch | inline | side by side (parent: 6e80042)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 23 Dec 2007 17:19:53 +0000 (17:19 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 23 Dec 2007 17:19:53 +0000 (17:19 +0000) |
src/sp-item.cpp | patch | blob | history |
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 2f3125a5856d65263cbc6bedcd2a5b587c5c5deb..ec168f03ff969771ff596d78fca4596d0a43cb4c 100644 (file)
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
}
}
- 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;
}
// Update libavoid with item geometry (for connector routing).
- item->avoidRef->handleSettingChange();
+ if (item->avoidRef)
+ item->avoidRef->handleSettingChange();
}
static Inkscape::XML::Node *