--- a/gui_actions.cpp Tue May 07 01:16:58 2013 +0300 +++ b/gui_actions.cpp Tue May 07 15:07:23 2013 +0300 @@ -414,21 +414,12 @@ // ============================================================================= void selGroup (const LDObject::Group group) { + g_win->sel ().clear (); + for (LDObject* obj : g_curfile->m_objs) { if (obj->group () != group) continue; // wrong group - bool selected = false; - for (LDObject* selobj : g_win->sel ()) { - if (selobj == obj) { - selected = true; - break; - } - } - - if (selected) - continue; // already selected - g_win->sel ().push_back (obj); } @@ -448,6 +439,8 @@ GROUP_ACTION (B, 2) GROUP_ACTION (C, 3) GROUP_ACTION (D, 4) +GROUP_ACTION (E, 5) +GROUP_ACTION (F, 6) MAKE_ACTION (ungroup, "Ungroup", "ungroup", "Unset the group of selected objects", CTRL_SHIFT (0)) { setGroup (LDObject::NoGroup);