X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-item-group.cpp;h=186b766635f1115ee63e0817401f4fd83af249c5;hb=8b9a820756fdf348239872236be2257f854e094a;hp=9e6333f97dcc14c42bbd9e6caa845c75341008b4;hpb=b7e61b7ae335cccd83b22cce8840848c2c7d80ef;p=inkscape.git diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 9e6333f97..186b76663 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -696,12 +696,12 @@ void CGroup::onModified(guint flags) { void CGroup::calculateBBox(NRRect *bbox, NR::Matrix const &transform, unsigned const flags) { - NR::Maybe dummy_bbox = NR::Nothing(); + boost::optional dummy_bbox; GSList *l = _group->childList(false, SPObject::ActionBBox); while (l) { SPObject *o = SP_OBJECT (l->data); - if (SP_IS_ITEM(o)) { + if (SP_IS_ITEM(o) && !SP_ITEM(o)->isHidden()) { SPItem *child = SP_ITEM(o); NR::Matrix const ct(child->transform * transform); sp_item_invoke_bbox_full(child, &dummy_bbox, ct, flags, FALSE);