diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-04-27 11:00:40 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-04-27 11:00:40 +0000 |
| commit | 73f1400782111f705fdbcd974f7477cce96b46bc (patch) | |
| tree | ea2e5431a0fe6f04991ad84f8289c7b154a19c3d /src/widgets/stroke-style.cpp | |
| parent | Add out of bound checks to fill bucket (diff) | |
| download | inkscape-73f1400782111f705fdbcd974f7477cce96b46bc.tar.gz inkscape-73f1400782111f705fdbcd974f7477cce96b46bc.zip | |
Fixes some crashes when selector is * and allow select multiple tags
Diffstat (limited to 'src/widgets/stroke-style.cpp')
| -rw-r--r-- | src/widgets/stroke-style.cpp | 18 |
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; |
