From 503cf435565b4c1127f938764cdf3e9f7ba52939 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 8 Feb 2012 21:50:51 +0100 Subject: [PATCH] fix bug #415: wrong return in Rotation2D::operator*= (transplanted from 5bb34fd14c74021314744cb1d4a82a39449359cf ) --- Eigen/src/Geometry/Rotation2D.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Geometry/Rotation2D.h b/Eigen/src/Geometry/Rotation2D.h index e1214bd3e..cf36da1c5 100644 --- a/Eigen/src/Geometry/Rotation2D.h +++ b/Eigen/src/Geometry/Rotation2D.h @@ -89,7 +89,7 @@ public: /** Concatenates two rotations */ inline Rotation2D& operator*=(const Rotation2D& other) - { return m_angle += other.m_angle; return *this; } + { m_angle += other.m_angle; return *this; } /** Applies the rotation to a 2D vector */ Vector2 operator* (const Vector2& vec) const