summaryrefslogtreecommitdiffstats
path: root/src/dialogs/stroke-style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/stroke-style.cpp')
-rw-r--r--src/dialogs/stroke-style.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp
index 152569a5a..ebfb7aca6 100644
--- a/src/dialogs/stroke-style.cpp
+++ b/src/dialogs/stroke-style.cpp
@@ -1440,6 +1440,9 @@ sp_stroke_style_line_update(SPWidget *spw, Inkscape::Selection *sel)
g_free (query);
+ if (!sel || sel->isEmpty())
+ return;
+
GSList const *objects = sel->itemList();
SPObject * const object = SP_OBJECT(objects->data);
SPStyle * const style = SP_OBJECT_STYLE(object);