This commit is contained in:
xuzhiqiang 2013-12-16 12:27:30 +08:00
parent 53092b359b
commit f797dea827
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 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;
}