summaryrefslogtreecommitdiffstats
path: root/src/selection-describer.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-04-27 11:00:40 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-04-27 11:00:40 +0000
commit73f1400782111f705fdbcd974f7477cce96b46bc (patch)
treeea2e5431a0fe6f04991ad84f8289c7b154a19c3d /src/selection-describer.cpp
parentAdd out of bound checks to fill bucket (diff)
downloadinkscape-73f1400782111f705fdbcd974f7477cce96b46bc.tar.gz
inkscape-73f1400782111f705fdbcd974f7477cce96b46bc.zip
Fixes some crashes when selector is * and allow select multiple tags
Diffstat (limited to 'src/selection-describer.cpp')
-rw-r--r--src/selection-describer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp
index b2b4b2d04..212ec9cf7 100644
--- a/src/selection-describer.cpp
+++ b/src/selection-describer.cpp
@@ -139,6 +139,9 @@ void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *select
// Parent name
SPObject *parent = item->parent;
+ if (!parent) { //fix selector * to "svg:svg"
+ return;
+ }
gchar const *parent_label = parent->getId();
gchar *parent_name = nullptr;
if (parent_label) {