From e79e7a1413cdd4de85c8de877ad71704e48181d7 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 14 Apr 2011 19:26:49 +0000 Subject: [PATCH] box2d: when copying actually copy exactly rather than using init to enforce validity - closes #749 --- src/box2d.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/box2d.cpp b/src/box2d.cpp index b19892ece..b4a069095 100644 --- a/src/box2d.cpp +++ b/src/box2d.cpp @@ -51,9 +51,15 @@ box2d::box2d(const coord &c0,const coord &c1) template box2d::box2d(const box2d &rhs) -{ + : minx_(rhs.minx_), + miny_(rhs.miny_), + maxx_(rhs.maxx_), + maxy_(rhs.maxy_) {} +// copy rather than init so dfl ctor (0,0,-1,-1) is not modified +// http://trac.mapnik.org/ticket/749 +/*{ init(rhs.minx_,rhs.miny_,rhs.maxx_,rhs.maxy_); -} +}*/ template #if !defined(__SUNPRO_CC)