diff options
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; |
