summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 87e0788d8..763713c9d 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -303,8 +303,10 @@ NR::Rect Selection::bounds() const
GSList const *i = items;
NR::Rect bbox = sp_item_bbox_desktop(SP_ITEM(i->data));
+ GSList const *i_start = i;
while (i != NULL) {
- bbox = NR::Rect::union_bounds(bbox, sp_item_bbox_desktop(SP_ITEM(i->data)));
+ if (i != i_start)
+ bbox = NR::Rect::union_bounds(bbox, sp_item_bbox_desktop(SP_ITEM(i->data)));
i = i->next;
}