summaryrefslogtreecommitdiffstats
path: root/src/dialogs/stroke-style.cpp
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2006-12-31 01:00:36 +0000
committergustav_b <gustav_b@users.sourceforge.net>2006-12-31 01:00:36 +0000
commita5389994ed2d8ffa9be1c48786c3f98e0566a3b1 (patch)
treef5a6ddcce82d4de54228250985076d56e218bbc5 /src/dialogs/stroke-style.cpp
parentFix 1565162 (Gradient stop color not updated in list when entering RBGA) (diff)
downloadinkscape-a5389994ed2d8ffa9be1c48786c3f98e0566a3b1.tar.gz
inkscape-a5389994ed2d8ffa9be1c48786c3f98e0566a3b1.zip
Fix 1516933 (text stroke crash inkscape)
(bzr r2112)
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);