diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-03-09 00:31:01 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-03-09 00:31:01 +0000 |
| commit | 53e91dea8534830b767328a43f9de119a739983a (patch) | |
| tree | 0c626b72a939afe50fa2d157b08c4d85a1d78ae9 /src/selection-chemistry.cpp | |
| parent | part of #339660; layers dialog allows non-unique inkscape:label attributes (diff) | |
| download | inkscape-53e91dea8534830b767328a43f9de119a739983a.tar.gz inkscape-53e91dea8534830b767328a43f9de119a739983a.zip | |
fix crash when duplicating an orphaned clone
(bzr r7444)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index badf27ecb..f393f73f9 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -291,6 +291,8 @@ void sp_selection_duplicate(SPDesktop *desktop, bool suppressDone) 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 |
