summaryrefslogtreecommitdiffstats
path: root/src/widgets
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/widgets
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/widgets')
-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..5bd1b5d8d 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;