From 22bf903382fe4899af89c35ab048fa1e16d316e4 Mon Sep 17 00:00:00 2001 From: vng Date: Fri, 19 Jul 2013 18:08:20 +0300 Subject: [PATCH] Minor code fix. --- geometry/any_rect2d.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/geometry/any_rect2d.hpp b/geometry/any_rect2d.hpp index c6d284902c..d09ad108b0 100644 --- a/geometry/any_rect2d.hpp +++ b/geometry/any_rect2d.hpp @@ -190,9 +190,7 @@ namespace m2 Point pts[4]; GetGlobalPoints(pts); - Rect res(pts[0].x, pts[0].y, pts[0].x, pts[0].y); - - res.Add(pts[1]); + Rect res(pts[0], pts[1]); res.Add(pts[2]); res.Add(pts[3]);