diff options
| author | Adonis Papaderos <ado.papas@yahoo.gr> | 2010-11-25 10:48:07 +0000 |
|---|---|---|
| committer | Adonis Papaderos <ado.papas@yahoo.gr> | 2010-11-25 10:48:07 +0000 |
| commit | 9a71dcac2597d6af02a573bacc0b67a8cae30d60 (patch) | |
| tree | 769e171b2d2fa97d21dcf4bda75b08951bcf36a2 /src/selection-chemistry.cpp | |
| parent | Dutch tips tutorial added. (diff) | |
| download | inkscape-9a71dcac2597d6af02a573bacc0b67a8cae30d60.tar.gz inkscape-9a71dcac2597d6af02a573bacc0b67a8cae30d60.zip | |
Fix Bug #675309 - crash when unlinking an orphaned clone
(bzr r9917.2.1)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 61db7f961..6786479d6 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2150,6 +2150,11 @@ sp_selection_unlink(SPDesktop *desktop) SPItem *unlink; if (SP_IS_USE(item)) { unlink = sp_use_unlink(SP_USE(item)); + // Unable to unlink use (external or invalid href?) + if (!unlink) { + new_select = g_slist_prepend(new_select, item); + continue; + } } else /*if (SP_IS_TREF(use))*/ { unlink = SP_ITEM(sp_tref_convert_to_tspan(item)); } |
