summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2017-02-09 13:51:53 +0000
committerJazzyNico <nicoduf@yahoo.fr>2017-02-09 13:51:53 +0000
commit646ef9c0269e7cf99f07d2a2896c35cf151a68a5 (patch)
tree9a3f0740331674b3c0f9d78fdcd3bce41b3cea3b
parentAdd naive selector validation on entry in style dialog. (diff)
downloadinkscape-646ef9c0269e7cf99f07d2a2896c35cf151a68a5.tar.gz
inkscape-646ef9c0269e7cf99f07d2a2896c35cf151a68a5.zip
[Bug #1662439] Instant crash when trying to move svg symbol.
Fixed bugs: - https://launchpad.net/bugs/1662439 (bzr r15498)
-rw-r--r--src/document.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index b69508751..b1f16fece 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1474,7 +1474,9 @@ static SPItem *find_group_at_point(unsigned int dkey, SPGroup *group, Geom::Poin
if (SP_IS_GROUP(&o) && SP_GROUP(&o)->effectiveLayerMode(dkey) != SPGroup::LAYER ) {
SPItem *child = SP_ITEM(&o);
Inkscape::DrawingItem *arenaitem = child->get_arenaitem(dkey);
- arenaitem->drawing().update();
+ if (arenaitem) {
+ arenaitem->drawing().update();
+ }
// seen remembers the last (topmost) of groups pickable at this point
if (arenaitem && arenaitem->pick(p, delta, 1) != NULL) {