summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77edd7d)
raw | patch | inline | side by side (parent: 77edd7d)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Mar 2009 00:31:01 +0000 (00:31 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Mar 2009 00:31:01 +0000 (00:31 +0000) |
src/selection-chemistry.cpp | patch | blob | history |
index badf27ecb45caa4d93541f5e806a371f43b66fd9..f393f73f959081b5fa65669790bd35756f9e4bba 100644 (file)
SPObject *old_clone = doc->getObjectById(id);
if (SP_IS_USE(old_clone)) {
SPItem *orig = sp_use_get_original(SP_USE(old_clone));
+ if (!orig) // orphaned
+ continue;
for(unsigned int j = 0; j < old_ids.size(); j++) {
if (!strcmp(SP_OBJECT_ID(orig), old_ids[j])) {
// we have both orig and clone in selection, relink