From: buliabyak Date: Sun, 11 Feb 2007 22:37:10 +0000 (+0000) Subject: allow grouping a single object X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11c97f5a246ff2da7284079bb295e063248035d6;p=inkscape.git allow grouping a single object --- diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index feddc9e29..541d04fff 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -437,18 +437,12 @@ void sp_selection_group() // Check if something is selected. if (selection->isEmpty()) { - desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select two or more objects to group.")); + desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select some objects to group.")); return; } GSList const *l = (GSList *) selection->reprList(); - // Check if at least two objects are selected. - if (l->next == NULL) { - desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select at least two objects to group.")); - return; - } - GSList *p = g_slist_copy((GSList *) l); selection->clear();