From a8340714dda77290447f405018b5e4aeae237374 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Tue, 15 Oct 2013 20:31:33 +0200 Subject: Fix for bug #1239452 (trunk: crash on ungroup...) Fixed bugs: - https://launchpad.net/bugs/1239452 (bzr r12692) --- src/selection-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 5463c3f94..c5169fff5 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -785,7 +785,7 @@ void sp_selection_ungroup(Inkscape::Selection *selection, SPDesktop *desktop) SPItem *group = static_cast(i->data); // when ungrouping cloned groups with their originals, some objects that were selected may no more exist due to unlinking - if (!SP_IS_OBJECT(group)) { + if (!SP_IS_OBJECT(group) || !group->getRepr()) { continue; } -- cgit v1.2.3