Merge pull request #4492 from zhiqiangxu/develop

closed #3407: an obvious bug in CCControlUtils::CCRectUnion.
This commit is contained in:
James Chen 2013-12-16 01:44:59 -08:00
commit 7deb3810c4
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ Rect ControlUtils::RectUnion(const Rect& src1, const Rect& src2)
float x2 = MAX(src1.getMaxX(), src2.getMaxX()); float x2 = MAX(src1.getMaxX(), src2.getMaxX());
float y2 = MAX(src1.getMaxY(), src2.getMaxY()); float y2 = MAX(src1.getMaxY(), src2.getMaxY());
result.origin=Point(x1,x2); result.origin=Point(x1,y1);
result.size=Size(x2-x1, y2-y1); result.size=Size(x2-x1, y2-y1);
return result; return result;
} }