mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4492 from zhiqiangxu/develop
closed #3407: an obvious bug in CCControlUtils::CCRectUnion.
This commit is contained in:
commit
7deb3810c4
|
@ -163,7 +163,7 @@ Rect ControlUtils::RectUnion(const Rect& src1, const Rect& src2)
|
|||
float x2 = MAX(src1.getMaxX(), src2.getMaxX());
|
||||
float y2 = MAX(src1.getMaxY(), src2.getMaxY());
|
||||
|
||||
result.origin=Point(x1,x2);
|
||||
result.origin=Point(x1,y1);
|
||||
result.size=Size(x2-x1, y2-y1);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue