cocos2d-x extension - find a BUG


#1

CCRect CCControlUtils::CCRectUnion(const CCRect& src1, const CCRect& src2)
{
CCRect result;

float x1 = MIN (CCRect::CCRectGetMinX(src1), CCRect::CCRectGetMinX(src2));
float y1 = MIN (CCRect::CCRectGetMinY(src1), CCRect::CCRectGetMinY(src2));

float x2 = MAX (CCRect::CCRectGetMaxX(src1), CCRect::CCRectGetMaxX(src2));
float y2 = MAX (CCRect::CCRectGetMaxY(src1), CCRect::CCRectGetMaxY(src2));

result.origin=ccp(x1,x2);
result.size=CCSizeMake(x2-x1, y2-y1);
return result;
}

" result.origin=ccp(x1,x2); " maybe should be " result.origin=ccp(x1,y1); "
?

or if i ma mistake, please skip it :slight_smile: