@@ -2822,35 +2822,35 @@ void MCCard::updateselection(MCControl *cptr, const MCRectangle &oldrect,
28222822
28232823 // MW-2008-12-04: [[ Bug ]] Make sure we honour group-local selectGrouped for
28242824 // select-tool drags
2825- if (MCselectgrouped && cptr->gettype () == CT_GROUP)
2826- {
2825+ if (MCselectgrouped && cptr->gettype () == CT_GROUP)
2826+ {
28272827 MCGroup *gptr = MCObjectCast<MCGroup>(cptr);
2828- if (gptr-> getcontrols () != NULL && gptr-> getflag (F_VISIBLE) && !gptr-> getflag (F_SELECT_GROUP))
2829- {
2830- cptr = gptr-> getcontrols ();
2831-
2832-
2833- MCRectangle t_group_rect;
2834- t_group_rect = gptr -> getrect ();
2835-
2836- MCRectangle t_group_oldrect;
2837- t_group_oldrect = MCU_intersect_rect (oldrect, t_group_rect);
2838-
2839- MCRectangle t_group_selrect;
2840- t_group_selrect = MCU_intersect_rect (selrect , t_group_rect);
2841-
2842- do
2843- {
2844- MCRectangle t_rect;
2845- t_rect = cptr -> getrect ();
2846- if (MCU_line_intersect_rect (t_group_rect, t_rect))
2847- updateselection (cptr, t_group_oldrect, t_group_selrect, drect);
2848-
2849- cptr = cptr->next ();
2850- }
2851- while (cptr != gptr->getcontrols ());
2852- }
2853- }
2828+
2829+ if (gptr-> getcontrols () != NULL && gptr-> getflag (F_VISIBLE) && !gptr-> getflag (F_SELECT_GROUP))
2830+ {
2831+ cptr = gptr-> getcontrols ();
2832+
2833+ MCRectangle t_group_rect;
2834+ t_group_rect = gptr -> getrect ();
2835+
2836+ MCRectangle t_group_oldrect;
2837+ t_group_oldrect = MCU_intersect_rect (oldrect, t_group_rect);
2838+
2839+ MCRectangle t_group_selrect;
2840+ t_group_selrect = MCU_intersect_rect (p_selrect , t_group_rect);
2841+
2842+ do
2843+ {
2844+ MCRectangle t_rect;
2845+ t_rect = cptr -> getrect ();
2846+ if (MCU_line_intersect_rect (t_group_rect, t_rect))
2847+ updateselection (cptr, t_group_oldrect, t_group_selrect, drect);
2848+
2849+ cptr = cptr->next ();
2850+ }
2851+ while (cptr != gptr->getcontrols ());
2852+ }
2853+ }
28542854 else
28552855 {
28562856 Boolean was, is;
0 commit comments