summaryrefslogtreecommitdiffstats
path: root/src/widgets/stroke-style.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2019-04-30 20:40:33 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2019-04-30 20:40:33 +0000
commitd137944b06575b9e79d0a3e79a3e5f5b8f6665e2 (patch)
tree6017a86cc0040ca9d7615c879036bd320f6e5de7 /src/widgets/stroke-style.cpp
parentFix disappearing and antialiasing of grid lines (diff)
parentSet spacing in About Dialog (diff)
downloadinkscape-d137944b06575b9e79d0a3e79a3e5f5b8f6665e2.tar.gz
inkscape-d137944b06575b9e79d0a3e79a3e5f5b8f6665e2.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/widgets/stroke-style.cpp')
-rw-r--r--src/widgets/stroke-style.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp
index 46454d508..48f0e3d78 100644
--- a/src/widgets/stroke-style.cpp
+++ b/src/widgets/stroke-style.cpp
@@ -951,15 +951,15 @@ StrokeStyle::updateLine()
return;
std::vector<SPItem*> const objects(sel->items().begin(), sel->items().end());
- SPObject * const object = objects[0];
- SPStyle * const style = object->style;
-
- /* Markers */
- updateAllMarkers(objects, true); // FIXME: make this desktop query too
-
- /* Dash */
- setDashSelectorFromStyle(dashSelector, style); // FIXME: make this desktop query too
-
+ if (objects.size()) {
+ SPObject *const object = objects[0];
+ SPStyle *const style = object->style;
+ /* Markers */
+ updateAllMarkers(objects, true); // FIXME: make this desktop query too
+
+ /* Dash */
+ setDashSelectorFromStyle(dashSelector, style); // FIXME: make this desktop query too
+ }
table->set_sensitive(true);
update = false;