From a99764de718f7331615d3f9449e10a56dee62fb6 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sat, 10 Mar 2007 20:54:38 +0000 Subject: Merge further bbox work (bzr r2596) --- src/selection.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/selection.cpp') diff --git a/src/selection.cpp b/src/selection.cpp index 49934cfd3..d39086e8c 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -421,9 +421,11 @@ std::vector Selection::getBBoxPoints() const { GSList const *items = const_cast(this)->itemList(); std::vector p; for (GSList const *iter = items; iter != NULL; iter = iter->next) { - NR::Rect b = sp_item_bbox_desktop(SP_ITEM(iter->data)); - p.push_back(b.min()); - p.push_back(b.max()); + NR::Maybe b = sp_item_bbox_desktop(SP_ITEM(iter->data)); + if (b) { + p.push_back(b->min()); + p.push_back(b->max()); + } } return p; -- cgit v1.2.3