summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-10-15 18:31:33 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-10-15 18:31:33 +0000
commita8340714dda77290447f405018b5e4aeae237374 (patch)
treea04b4ab1bdcd5ea6f09f5e2d2c487b5fdd6e251a /src/selection-chemistry.cpp
parenteek-preview: Hide unused variable in gtk3 build (diff)
downloadinkscape-a8340714dda77290447f405018b5e4aeae237374.tar.gz
inkscape-a8340714dda77290447f405018b5e4aeae237374.zip
Fix for bug #1239452 (trunk: crash on ungroup...)
Fixed bugs: - https://launchpad.net/bugs/1239452 (bzr r12692)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
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<SPItem *>(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;
}