summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d99891f)
raw | patch | inline | side by side (parent: d99891f)
author | pjrm <pjrm@users.sourceforge.net> | |
Wed, 31 Oct 2007 10:37:16 +0000 (10:37 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Wed, 31 Oct 2007 10:37:16 +0000 (10:37 +0000) |
src/selection-chemistry.cpp | patch | blob | history |
index f16e8bdceafff93a0164ebcca6fd2950d7d077de..ce14bd0f521affc65389b4343f8cfcd92082d6a4 100644 (file)
return SP_GROUP(parent);
}
-/** Finds out the minimum common bbox of the selected items
- */
+/** Finds out the minimum common bbox of the selected items. */
static NR::Maybe<NR::Rect>
enclose_items(GSList const *items)
{
Inkscape::XML::Node *grepr = SP_OBJECT_REPR(group);
- /* construct reverse-ordered list of selected children */
+ /* Construct reverse-ordered list of selected children. */
GSList *rev = g_slist_copy((GSList *) items);
rev = g_slist_sort(rev, (GCompareFunc) sp_item_repr_compare_position);
- // find out the common bbox of the selected items
+ // Determine the common bbox of the selected items.
NR::Maybe<NR::Rect> selected = enclose_items(items);
- // for all objects in the selection (starting from top)
+ // Iterate over all objects in the selection (starting from top).
if (selected) {
while (rev) {
SPObject *child = SP_OBJECT(rev->data);
Inkscape::XML::Node *grepr = SP_OBJECT_REPR(group);
- // find out the common bbox of the selected items
+ // Determine the common bbox of the selected items.
NR::Maybe<NR::Rect> selected = enclose_items(items);
- /* construct direct-ordered list of selected children */
+ /* Construct direct-ordered list of selected children. */
GSList *rev = g_slist_copy((GSList *) items);
rev = g_slist_sort(rev, (GCompareFunc) sp_item_repr_compare_position);
rev = g_slist_reverse(rev);
- // for all objects in the selection (starting from top)
+ // Iterate over all objects in the selection (starting from top).
if (selected) {
while (rev) {
SPObject *child = SP_OBJECT(rev->data);