summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d31cf3f)
raw | patch | inline | side by side (parent: d31cf3f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 22 Mar 2006 18:25:58 +0000 (18:25 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 22 Mar 2006 18:25:58 +0000 (18:25 +0000) |
src/selection.cpp | patch | blob | history |
diff --git a/src/selection.cpp b/src/selection.cpp
index 87e0788d888e042b7cb452f604d57c0b1df0f1d8..763713c9d86923e0242f6399429fb41f01d77313 100644 (file)
--- a/src/selection.cpp
+++ b/src/selection.cpp
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;
}